Skip to content

Commit 658e1d4

Browse files
committed
style(pylint): add pylint config
1 parent 1d65057 commit 658e1d4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pyproject.toml

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1-
21
[tool.black]
32
line-length = 100
43
target-version = ['py38']
54
include = 'server,tests/server'
5+
6+
[tool.pylint]
7+
[tool.pylint.'MESSAGES CONTROL']
8+
max-line-length = 100
9+
disable = [
10+
'logging-format-interpolation',
11+
# Allow pytest functions to be part of a class
12+
'no-self-use',
13+
'too-many-locals',
14+
'too-many-arguments',
15+
# Allow pytest classes to have one test
16+
'too-few-public-methods',
17+
]
18+
19+
[tool.pylint.'BASIC']
20+
# Allow arbitrarily short-named variables.
21+
variable-rgx = ['[a-z_][a-z0-9_]*']
22+
argument-rgx = [ '[a-z_][a-z0-9_]*' ]
23+
attr-rgx = ['[a-z_][a-z0-9_]*']
24+
25+
[tool.pylint.'DESIGN']
26+
ignored-argument-names = ['(_.*|run_as_module)']

0 commit comments

Comments
 (0)