-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pylintrc.toml
72 lines (66 loc) · 1.62 KB
/
.pylintrc.toml
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
[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__",
"setUp",
"reset",
"_reset",
]
[tool.pylint.design]
max-args = 35
max-attributes = 40
max-bool-expr = 5
max-branches = 50
max-locals = 50
max-parents = 12
max-positional-arguments = 35
max-public-methods = 500
max-returns = 20
max-statements = 150
min-public-methods = 0
max-nested-blocks = 7
[tool.pylint."messages control"]
enable = [
# "useless-suppression",
"all",
]
disable = [
# defer to ruff
"line-too-long",
"missing-module-docstring",
"missing-function-docstring",
"redefined-outer-name",
"unused-argument",
"too-complex",
"missing-param-doc",
# 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:
"invalid-name",
# "protected-access",
"unspecified-encoding",
"consider-using-f-string",
"duplicate-code",
# "cyclic-import",
# project specific
"consider-using-enumerate",
"consider-using-assignment-expr",
"use-implicit-booleaness-not-comparison-to-zero",
]
[tool.pylint.reports]
output-format = "colorized"
[tool.pylint.dunder]
good-dunder-names = [ "_repr_html_", "__array__" ]