2022-01-26 18:12:55 +01:00
|
|
|
[build-system]
|
|
|
|
|
requires = [
|
|
|
|
|
"setuptools",
|
|
|
|
|
"wheel",
|
|
|
|
|
]
|
|
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
|
line-length = 120
|
2022-03-07 19:25:33 +01:00
|
|
|
skip_magic_trailing_comma = true # For compatibility with pydoc>=4.6, check if still needed.
|
2022-01-26 18:12:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
|
|
|
max-line-length=120
|
|
|
|
|
disable = [
|
2022-02-21 20:16:14 +01:00
|
|
|
|
2022-05-04 17:39:06 +02:00
|
|
|
# To keep
|
2022-02-21 20:16:14 +01:00
|
|
|
"fixme",
|
|
|
|
|
"c-extension-no-member",
|
2022-06-07 09:23:03 +02:00
|
|
|
"wrong-spelling-in-comment",
|
|
|
|
|
"wrong-spelling-in-docstring",
|
2022-02-21 20:16:14 +01:00
|
|
|
|
2022-04-12 16:41:05 +02:00
|
|
|
# To review:
|
2022-01-26 18:12:55 +01:00
|
|
|
"missing-docstring",
|
|
|
|
|
"unused-argument",
|
|
|
|
|
"no-member",
|
|
|
|
|
"line-too-long",
|
|
|
|
|
"protected-access",
|
|
|
|
|
"too-few-public-methods",
|
2022-02-09 18:27:12 +01:00
|
|
|
"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",
|
|
|
|
|
"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",
|
2022-04-12 16:41:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# To review later
|
|
|
|
|
"cyclic-import",
|
|
|
|
|
"import-outside-toplevel",
|
2022-02-09 18:27:12 +01:00
|
|
|
"deprecated-method",
|
2022-01-26 18:12:55 +01:00
|
|
|
]
|
|
|
|
|
[tool.pylint.'DESIGN']
|
|
|
|
|
max-args=7
|
|
|
|
|
[tool.pylint.'SIMILARITIES']
|
2022-02-08 17:23:59 +01:00
|
|
|
min-similarity-lines=6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
minversion = "6.0"
|
|
|
|
|
addopts = "--strict-markers"
|
|
|
|
|
markers = [
|
2022-06-07 09:23:03 +02:00
|
|
|
"integration: integration tests",
|
|
|
|
|
|
|
|
|
|
"generator: generator tests",
|
2022-03-15 11:17:26 +01:00
|
|
|
"summarizer: summarizer tests",
|
2022-06-07 09:23:03 +02:00
|
|
|
"embedding_dim: uses a document store with non-default embedding dimension (e.g @pytest.mark.embedding_dim(128))",
|
|
|
|
|
|
|
|
|
|
"tika: requires Tika container",
|
|
|
|
|
"parsr: requires Parsr container",
|
|
|
|
|
"ocr: requires Tesseract",
|
|
|
|
|
|
|
|
|
|
"elasticsearch: requires Elasticsearch container",
|
|
|
|
|
"graphdb: requires GraphDB container",
|
|
|
|
|
"weaviate: requires Weaviate container",
|
|
|
|
|
"pinecone: requires Pinecone credentials",
|
2022-03-15 11:17:26 +01:00
|
|
|
"faiss: uses FAISS",
|
|
|
|
|
"milvus: requires a Milvus 2 setup",
|
|
|
|
|
"milvus1: requires a Milvus 1 container",
|
2022-02-09 21:29:05 +01:00
|
|
|
]
|
|
|
|
|
log_cli = true
|