Skip to content

Commit

Permalink
Add project skeleton (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe authored May 14, 2024
1 parent 6a13a39 commit 7806f70
Show file tree
Hide file tree
Showing 14 changed files with 481 additions and 33 deletions.
56 changes: 23 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Local run files
qa.db
**/qa.db
**/*qa*.db
**/test-reports

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -20,6 +26,7 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -49,7 +56,6 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -68,11 +74,10 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
# documentation
docs/pydoc/temp/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -83,9 +88,7 @@ profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand All @@ -94,22 +97,7 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
# pyflow
__pypackages__/

# Celery stuff
Expand Down Expand Up @@ -146,15 +134,17 @@ dmypy.json
# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/
# PyCharm
.idea

# Cython debug symbols
cython_debug/
# VSCode
.vscode

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# macOS
.DS_Store

# http cache (requests-cache)
**/http_cache.sqlite

# ruff
.ruff_cache
26 changes: 26 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Security Policy

## Report a Vulnerability

If you found a security vulnerability in Haystack, send a message to
[[email protected]](mailto:[email protected]).

In your message, please include:

1. Reproducible steps to trigger the vulnerability.
2. An explanation of what makes you think there is a vulnerability.
3. Any information you may have on active exploitations of the vulnerability (zero-day).

## Vulnerability Response

We'll review your report within 5 business days and we will do a preliminary analysis
to confirm that the vulnerability is plausible. Otherwise, we'll decline the report.

We won't disclose any information you share with us but we'll use it to get the issue
fixed or to coordinate a vendor response, as needed.

We'll keep you updated of the status of the issue.

Our goal is to disclose bugs as soon as possible once a user mitigation is available.
Once we get a good understanding of the vulnerability, we'll set a disclosure date after
consulting the author of the report and Haystack maintainers.
1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
3 changes: 3 additions & 0 deletions haystack-experimental/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions haystack-experimental/components/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions haystack-experimental/evaluation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
10 changes: 10 additions & 0 deletions haystack-experimental/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

from importlib import metadata

try:
__version__ = str(metadata.version("haystack-experimental"))
except metadata.PackageNotFoundError:
__version__ = "main"
3 changes: 3 additions & 0 deletions license-header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: ${inceptionYear}-present ${copyrightOwner}

SPDX-License-Identifier: Apache-2.0
23 changes: 23 additions & 0 deletions licenserc.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
headerPath = "license-header.txt"

excludes = [
".github",
"docker",
"docs",
"examples",
"proposals",
"releasenotes",
"test",
"CITATION.cff",
"*.ini",
"*.jinja2",
"*.md",
"*.toml",
"*.txt",
"*.yaml",
"*.wav",
]

[properties]
inceptionYear = 2022
copyrightOwner = "deepset GmbH <[email protected]>"
Loading

0 comments on commit 7806f70

Please sign in to comment.