-
Notifications
You must be signed in to change notification settings - Fork 351
/
pylintrc
45 lines (41 loc) · 1.14 KB
/
pylintrc
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
[MASTER]
init-hook='import glob; [sys.path.append(d) for d in glob.glob("*/") if not d.startswith("_")]'
[MESSAGE CONTROL]
disable=
missing-docstring,
no-else-return,
too-few-public-methods,
missing-final-newline,
too-many-boolean-expressions,
bad-continuation,
invalid-name,
super-init-not-called,
inconsistent-return-statements,
too-many-arguments,
too-many-locals,
protected-access,
redefined-outer-name,
too-many-instance-attributes,
fixme,
duplicate-code,
logging-fstring-interpolation,
logging-format-interpolation,
too-many-lines
[FORMAT]
max-line-length=120
single-line-if-stmt=yes
include-naming-hint=yes
function-rgx=[a-z_][a-z0-9_]*$
argument-rgx=[a-z_][a-z0-9_]*$
variable-rgx=[a-z_][a-z0-9_]*$
# "logger" and "api" are common module-level globals, and not true 'constants'
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|logger|api|_api)$
[DESIGN]
max-args=6
ignored-argument-names=_.*|self
[SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines=20 # TODO: Reset lower when pylint bug fixed #214.
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=no