-
Notifications
You must be signed in to change notification settings - Fork 70
/
.pylintrc
59 lines (55 loc) · 1.65 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[MESSAGES CONTROL]
disable=
# "F" Fatal errors that prevent further processing
import-error,
# "I" Informational noise
# "E" Error for important programming issues (likely bugs)
cyclic-import,
no-member,
no-name-in-module,
# "W" Warnings for stylistic problems or minor programming issues
arguments-differ,
bad-mcs-classmethod-argument,
fixme,
global-statement,
logging-format-interpolation,
protected-access,
redefined-outer-name,
super-init-not-called,
unsubscriptable-object,
unused-variable,
# "C" Coding convention violations
invalid-name,
missing-docstring,
unidiomatic-typecheck,
# "R" Refactor recommendations
duplicate-code,
inconsistent-return-statements,
too-few-public-methods,
too-many-ancestors,
too-many-branches,
too-many-locals,
too-many-public-methods,
too-many-statements,
print-statement,
# new for python3 version of pylint
useless-object-inheritance,
super-with-arguments, # required in python 2
raise-missing-from, # no 'raise from' in python 2
consider-using-f-string, # nope, we still have py2 to support
redundant-u-string-prefix, # nope, we still have py2 to support
exception-message-attribute, # nope, still have py2 to support
no-absolute-import, # XXX FIXME nice to have one day
unspecified-encoding, # XXX FIXME May be a good thing to have one day though
deprecated-class, # We still have < 3.9 to support
use-dict-literal
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=120
[DESIGN]
max-args=12 # 2x + 2 from default
max-attributes=21 # 4x + 1 from default
[TYPECHECK]
disable=bad-option-value # unavoidable as the project requires both py2 and py3
[IMPORTS]
known-third-party=leapp