mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-27 15:08:43 +00:00
pylint: Set limits on code complexity (#5771)
This commit is contained in:
parent
24c42b1e03
commit
6846448bac
@ -278,7 +278,6 @@ packages = [
|
||||
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
|
||||
load-plugins = "haystack_linter"
|
||||
@ -297,18 +296,14 @@ disable = [
|
||||
"too-few-public-methods",
|
||||
"raise-missing-from",
|
||||
"invalid-name",
|
||||
"too-many-locals",
|
||||
"duplicate-code",
|
||||
"too-many-arguments",
|
||||
"arguments-differ",
|
||||
"consider-using-f-string",
|
||||
"no-else-return",
|
||||
"attribute-defined-outside-init",
|
||||
"too-many-instance-attributes",
|
||||
"super-with-arguments",
|
||||
"redefined-builtin",
|
||||
"abstract-method",
|
||||
"too-many-branches",
|
||||
"unspecified-encoding",
|
||||
"unidiomatic-typecheck",
|
||||
"no-name-in-module",
|
||||
@ -321,12 +316,9 @@ disable = [
|
||||
"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",
|
||||
@ -338,7 +330,11 @@ disable = [
|
||||
"deprecated-method",
|
||||
]
|
||||
[tool.pylint.'DESIGN']
|
||||
max-args=7
|
||||
max-args = 37 # Default is 5
|
||||
max-attributes = 27 # Default is 7
|
||||
max-branches = 33 # Default is 12
|
||||
max-locals = 44 # Default is 15
|
||||
max-statements = 205 # Default is 50
|
||||
[tool.pylint.'SIMILARITIES']
|
||||
min-similarity-lines=6
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user