mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 04:56:45 +00:00
* Remove BasePipeline and make a module for RayPipeline * Can load pipelines from yaml, plenty of issues left * Extract graph validation logic into _add_node_to_pipeline_graph & refactor load_from_config and add_node to use it * Fix pipeline tests * Move some tests out of test_pipeline.py and create MockDenseRetriever * myoy and pylint (silencing too-many-public-methods) * Fix issue found in some yaml files and in schema files * Fix paths to YAML and fix some typos in Ray * Fix eval tests * Simplify MockDenseRetriever * Fix Ray test * Accidentally pushed merge coinflict, fixed * Typo in schemas * Typo in _json_schema.py * Slightly reduce noisyness of version validation warnings * Fix version logs tests * Fix version logs tests again * remove seemingly unused file * Add check and test to avoid adding the same node to the pipeline twice * Update Documentation & Code Style * Revert config to pipeline_config * Remo0ve unused import * Complete reverting to pipeline_config * Some more stray config= * Update Documentation & Code Style * Feedback * Move back other_nodes tests into pipeline tests temporarily * Update Documentation & Code Style * Fixing tests * Update Documentation & Code Style * Fixing ray and standard pipeline tests * Rename colliding load() methods in dense retrievers and faiss * Update Documentation & Code Style * Fix mypy on ray.py as well * Add check for no root node * Fix tests to use load_from_directory and load_index * Try to workaround the disabled add_node of RayPipeline * Update Documentation & Code Style * Fix Ray test * Fix FAISS tests * Relax class check in _add_node_to_pipeline_graph * Update Documentation & Code Style * Try to fix mypy in ray.py * unused import * Try another fix for Ray * Fix connector tests * Update Documentation & Code Style * Fix ray * Update Documentation & Code Style * use BaseComponent.load() in pipelines/base.py * another round of feedback * stray BaseComponent.load() * Update Documentation & Code Style * Fix FAISS tests too Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: tstadel <60758086+tstadel@users.noreply.github.com>
105 lines
2.6 KiB
TOML
105 lines
2.6 KiB
TOML
[build-system]
|
|
requires = [
|
|
"setuptools",
|
|
"wheel",
|
|
]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
[tool.black]
|
|
line-length = 120
|
|
skip_magic_trailing_comma = true # For compatibility with pydoc>=4.6, check if still needed.
|
|
|
|
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
max-line-length=120
|
|
disable = [
|
|
|
|
# To keep
|
|
"fixme",
|
|
"c-extension-no-member",
|
|
|
|
# To review:
|
|
"missing-docstring",
|
|
"unused-argument",
|
|
"no-member",
|
|
"line-too-long",
|
|
"protected-access",
|
|
"too-few-public-methods",
|
|
"raise-missing-from",
|
|
"invalid-name",
|
|
"logging-fstring-interpolation",
|
|
"too-many-locals",
|
|
"duplicate-code",
|
|
"too-many-arguments",
|
|
"arguments-differ",
|
|
"consider-using-f-string",
|
|
"no-else-return",
|
|
"unused-variable",
|
|
"attribute-defined-outside-init",
|
|
"too-many-instance-attributes",
|
|
"no-self-use",
|
|
"super-with-arguments",
|
|
"anomalous-backslash-in-string",
|
|
"redefined-builtin",
|
|
"logging-format-interpolation",
|
|
"f-string-without-interpolation",
|
|
"abstract-method",
|
|
"too-many-branches",
|
|
"trailing-whitespace",
|
|
"unspecified-encoding",
|
|
"unidiomatic-typecheck",
|
|
"no-name-in-module",
|
|
"dangerous-default-value",
|
|
"consider-using-with",
|
|
"redefined-outer-name",
|
|
"arguments-renamed",
|
|
"unnecessary-pass",
|
|
"broad-except",
|
|
"unnecessary-comprehension",
|
|
"subprocess-run-check",
|
|
"singleton-comparison",
|
|
"consider-iterating-dictionary",
|
|
"too-many-nested-blocks",
|
|
"undefined-loop-variable",
|
|
"too-many-statements",
|
|
"consider-using-in",
|
|
"bare-except",
|
|
"too-many-lines",
|
|
"unexpected-keyword-arg",
|
|
"simplifiable-if-expression",
|
|
"use-list-literal",
|
|
|
|
|
|
|
|
|
|
# To review later
|
|
"cyclic-import",
|
|
"import-outside-toplevel",
|
|
"deprecated-method",
|
|
]
|
|
[tool.pylint.'DESIGN']
|
|
max-args=7
|
|
[tool.pylint.'SIMILARITIES']
|
|
min-similarity-lines=6
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "6.0"
|
|
addopts = "--strict-markers"
|
|
markers = [
|
|
"integration: integration tests (deselect with '-m \"not integration\"')",
|
|
"slow: slow tests (deselect with '-m \"not slow\"')",
|
|
"tika: require tika container (deselect with '-m \"not tika\"')",
|
|
"elasticsearch: require elasticsearch container (deselect with '-m \"not elasticsearch\"')",
|
|
"graphdb: require graphdb container (deselect with '-m \"not graphdb\"')",
|
|
"generator: generator tests (deselect with '-m \"not generator\"')",
|
|
"pipeline: tests with pipelines",
|
|
"summarizer: summarizer tests",
|
|
"weaviate: require weaviate container",
|
|
"faiss: uses FAISS",
|
|
"milvus: requires a Milvus 2 setup",
|
|
"milvus1: requires a Milvus 1 container",
|
|
"embedding_dim: uses a document store with non-default embedding dimension (e.g @pytest.mark.embedding_dim(128))",
|
|
]
|
|
log_cli = true |