mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-28 15:38:36 +00:00
* remove duplicate imports * fix ungrouped-imports * Fix wrong-import-position * Fix unused-import * pyproject.toml * Working on wrong-import-order * Solve wrong-import-order * fix Pool import * Move open_search_index_to_document_store and elasticsearch_index_to_document_store in elasticsearch.py * remove Converter from modeling * Fix mypy issues on adaptive_model.py * create es_converter.py * remove converter import * change import path in tests * Restructure REST API to not rely on global vars from search.apy and improve tests * Fix openapi generator * Move variable initialization * Change type of FilterRequest.filters Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
108 lines
2.6 KiB
TOML
108 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 = [
|
|
|
|
# Warnings
|
|
"fixme",
|
|
|
|
# Info
|
|
"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 |