-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
58 lines (48 loc) · 1.31 KB
/
pyproject.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
[tool.yapf]
column_limit = 140
[tool.isort]
profile = "black"
skip_glob = ["**/.git*", "**/.env*", "**/venv*", "**/venvwsl*","**/docs*","**/migrations*"]
force_single_line = false
line_length = 140
# verbose = true
skip_gitignore = true
color_output = true
[tool.pylint.messages_control]
max-line-length = 140
disable = [
# "import-outside-toplevel",
"broad-except",
# "unused-import",
# "unused-variable",
"missing-docstring",
"c-extension-no-member",
"no-name-in-module",
"f-string-without-interpolation",
"unused-argument",
"invalid-name",
# "no-value-for-parameter",
"no-member",
# "no-self-use",
"line-too-long",
"protected-access",
# "too-few-public-methods",
]
[tool.pylint.design]
# limiting the number of returns might discourage
# the use of guard clauses. So we increase the
# allowed number of returns from 6 to 8
max-returns = 8
# Maximum number of arguments for function / method.
max-args=15
max-parents=15
# Maximum number of attributes for a class (see R0902).
max-attributes=15
# Maximum number of boolean expressions in an if statement.
max-bool-expr=5
# Maximum number of locals for function / method body.
max-locals=25
# Maximum number of statements in function / method body.
max-statements=50
# Minimum number of public methods for a class (see R0903).
min-public-methods=1