-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
103 lines (95 loc) · 2.05 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tool.pylint.FORMAT]
max-line-length = 100
max-module-lines = 1000
[tool.pylint.MASTER]
ignore = "tests"
max-complexity = 15
[tool.pylint.BASIC]
argument-naming-style = 'snake_case'
attr-naming-style = 'snake_case'
class-naming-style = 'PascalCase'
const-naming-style = 'UPPER_CASE'
function-naming-style = 'snake_case'
method-naming-style = 'snake_case'
module-naming-style = 'snake_case'
variable-naming-style = 'snake_case'
[tool.pylint.DESIGN]
# Maximum number of arguments for function / method.
max-args = 5
# Maximum number of statements in function / method body.
max-statements = 50
[tool.pylint."MESSAGES CONTROL"]
disable = '''
logging-fstring-interpolation,
fixme,
import-error,
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
too-many-instance-attributes,
too-few-public-methods,
wrong-import-order,
broad-except,
'''
[tool.pylint.REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks = 3
[tool.mypy]
python_version = "3.7"
ignore_missing_imports = true
no_implicit_optional = true
strict_optional = true
warn_return_any = true
warn_no_return = true
warn_unreachable = true
pretty = true
[tool.black]
target-version = ['py37']
line-length = 100
include_trailing_comma = false
skip-string-normalization = true
[tool.ruff]
unfixable = []
exclude = [
"__pycache__",
]
ignore = [
"B008", # do not perform function calls in argument defaults
# "B904", # TODO only temporary. should be fixed.
"E501", # line too long
"N815", # mixedCase variable in class scope
"N803", # argument name should be lowercase
"N806", # variable in function should be lowercase
"N812", # lowercase imported as non lowercase
"N999", # Invalid module name: 'Browser'
"PLR0913", # too many arguments
"T201", # Print statements
]
target-version = "py37"
select = [
"E",
"F",
"W",
"C90",
"I",
"N",
"B",
"PYI",
"PL",
"PTH",
"UP",
"A",
"C4",
"DTZ",
"ISC",
"ICN",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"RSE",
"RET",
"SIM",
"RUF"
]