-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pylintrc.toml
More file actions
76 lines (70 loc) · 1.75 KB
/
.pylintrc.toml
File metadata and controls
76 lines (70 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[tool.pylint.master]
ignore-paths = [ "^tests/legacy" ]
[tool.pylint.similarities]
ignore-imports = "yes"
[tool.pylint.basic]
no-docstring-rgx = "__.*__|test[A-Z_].*|_decorator|_wrapper|_.*__.*"
[tool.pylint.classes]
defining-attr-methods = [
"__init__",
"__new__",
"__post_init__",
"_reset",
"reset",
"setUp",
]
[tool.pylint.design]
max-args = 15
max-attributes = 40
max-bool-expr = 5
max-branches = 50
max-locals = 50
max-parents = 12
max-positional-arguments = 15
max-public-methods = 500
max-returns = 20
max-statements = 150
min-public-methods = 0
[tool.pylint."messages control"]
enable = [
# "useless-suppression",
"all",
]
# disable options
disable = [
# defer to ruff
"line-too-long",
"missing-function-docstring",
"missing-module-docstring",
"missing-param-doc",
"redefined-outer-name",
"too-complex",
"unused-argument",
"unused-import",
# Silly
"docstring-first-line-empty",
"magic-value-comparison",
# Can be useful to see what is ignored
"locally-disabled",
"suppressed-message",
# Questionable things, but it's ok, I don't need to be told:
"import-outside-toplevel",
"superfluous-parens",
"too-many-lines",
# Messages that are noisy for now, eventually maybe we'll turn them on:
"consider-using-f-string",
"invalid-name",
"unspecified-encoding",
# "protected-access",
# "duplicate-code",
# "cyclic-import",
# project specific
"abstract-method",
"consider-using-augmented-assign",
"import-error", # defer to pyright
"too-many-arguments",
"too-many-positional-arguments",
"use-implicit-booleaness-not-comparison-to-zero",
]
[tool.pylint.reports]
output-format = "colorized"