-
Notifications
You must be signed in to change notification settings - Fork 20
/
.pylintrc
148 lines (142 loc) · 3.98 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[MESSAGES CONTROL]
disable=
abstract-method,
access-member-before-definition,
arguments-differ,
arguments-renamed,
assignment-from-no-return,
assignment-from-none,
attribute-defined-outside-init,
bad-continuation,
bad-indentation,
bad-mcs-classmethod-argument,
broad-except,
broad-exception-raised,
c-extension-no-member,
cell-var-from-loop,
chained-comparison,
comparison-with-callable,
consider-iterating-dictionary,
consider-merging-isinstance,
consider-using-dict-items,
consider-using-dict-comprehension, # requires Python 2.7+, but we still require Python 2.6 support
consider-using-enumerate,
consider-using-f-string, # requires Python 3.6+, but we still require Python 2.6 support
consider-using-get,
consider-using-in,
consider-using-set-comprehension, # requires Python 2.7+, but we still require Python 2.6 support
consider-using-ternary,
consider-using-with,
cyclic-import, # consistent results require running with --jobs 1 and testing all files
deprecated-lambda,
deprecated-method,
deprecated-module,
duplicate-code, # consistent results require running with --jobs 1 and testing all files
eval-used,
exec-used,
expression-not-assigned,
fixme,
function-redefined,
global-statement,
global-variable-undefined,
import-error, # inconsistent results which depend on the availability of imports
import-outside-toplevel, # common pattern in ansible related code
import-self,
inconsistent-return-statements,
invalid-envvar-default,
invalid-name,
invalid-sequence-index,
keyword-arg-before-vararg,
len-as-condition,
line-too-long,
literal-comparison,
locally-disabled,
method-hidden,
missing-docstring,
no-else-break,
no-else-continue,
no-else-raise,
no-else-return,
no-init,
no-member,
no-name-in-module, # inconsistent results which depend on the availability of imports
no-self-use,
no-value-for-parameter,
non-iterator-returned,
not-a-mapping,
not-an-iterable,
not-callable,
pointless-statement,
pointless-string-statement,
possibly-unused-variable,
protected-access,
raise-missing-from, # Python 2.x does not support raise from
redefined-argument-from-local,
redefined-builtin,
redefined-outer-name,
redundant-u-string-prefix, # we still support Python 2.x
reimported,
relative-beyond-top-level, # https://github.com/PyCQA/pylint/issues/2967
signature-differs,
simplifiable-if-expression,
simplifiable-if-statement,
subprocess-popen-preexec-fn,
super-init-not-called,
super-with-arguments, # Python 2.x does not support super without arguments
superfluous-parens,
too-few-public-methods,
too-many-ancestors, # inconsistent results between python 3.6 and 3.7+
too-many-arguments,
too-many-boolean-expressions,
too-many-branches,
too-many-function-args,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-nested-blocks,
too-many-public-methods,
too-many-return-statements,
too-many-statements,
trailing-comma-tuple,
trailing-comma-tuple,
try-except-raise,
unbalanced-tuple-unpacking,
undefined-loop-variable,
unexpected-keyword-arg,
ungrouped-imports,
unidiomatic-typecheck,
unknown-option-value,
unnecessary-pass,
unspecified-encoding,
unsubscriptable-object,
unsupported-assignment-operation,
unsupported-delete-operation,
unsupported-membership-test,
unused-argument,
unused-import,
unused-variable,
useless-object-inheritance,
useless-option-value,
useless-return,
useless-super-delegation,
use-dict-literal,
wrong-import-order,
wrong-import-position,
[BASIC]
bad-names=
_,
bar,
baz,
foo,
tata,
toto,
tutu,
good-names=
ex,
i,
j,
k,
Run,
[TYPECHECK]
ignored-modules=
_MovedItems,