-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.pylintrc
266 lines (252 loc) · 7.95 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
[MAIN]
# Files or directories to be skipped. They should be base names, not paths.
ignore=tests
[BASIC]
# Good variable names which should always be accepted, separated by a comma.
good-names=ex,fp,i,id,j,k,on,Run,T
[DESIGN]
# Maximum number of attributes for a class (see R0902).
max-attributes=8
[MESSAGES CONTROL]
disable=format,
abstract-method,
cyclic-import,
duplicate-code,
inconsistent-return-statements,
locally-disabled,
not-context-manager,
too-few-public-methods,
too-many-ancestors,
too-many-arguments,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-public-methods,
too-many-boolean-expressions,
wrong-import-order,
consider-using-f-string,
consider-using-namedtuple-or-dataclass,
consider-using-assignment-expr,
possibly-used-before-assignment,
# Handled by ruff
# Ref: <https://github.com/astral-sh/ruff/issues/970>
await-outside-async, # PLE1142
bad-str-strip-call, # PLE1310
bad-string-format-type, # PLE1307
bidirectional-unicode, # PLE2502
continue-in-finally, # PLE0116
duplicate-bases, # PLE0241
misplaced-bare-raise, # PLE0704
format-needs-mapping, # F502
function-redefined, # F811
# Needed because ruff does not understand type of __all__ generated by a function
# invalid-all-format, # PLE0605
invalid-all-object, # PLE0604
invalid-character-backspace, # PLE2510
invalid-character-esc, # PLE2513
invalid-character-nul, # PLE2514
invalid-character-sub, # PLE2512
invalid-character-zero-width-space, # PLE2515
logging-too-few-args, # PLE1206
logging-too-many-args, # PLE1205
missing-format-string-key, # F524
mixed-format-string, # F506
no-method-argument, # N805
no-self-argument, # N805
nonexistent-operator, # B002
nonlocal-without-binding, # PLE0117
not-in-loop, # F701, F702
notimplemented-raised, # F901
return-in-init, # PLE0101
return-outside-function, # F706
syntax-error, # E999
too-few-format-args, # F524
too-many-format-args, # F522
too-many-star-expressions, # F622
truncated-format-string, # F501
undefined-all-variable, # F822
undefined-variable, # F821
used-prior-global-declaration, # PLE0118
yield-inside-async-function, # PLE1700
yield-outside-function, # F704
anomalous-backslash-in-string, # W605
assert-on-string-literal, # PLW0129
assert-on-tuple, # F631
bad-format-string, # W1302, F
bad-format-string-key, # W1300, F
bare-except, # E722
binary-op-exception, # PLW0711
cell-var-from-loop, # B023
# dangerous-default-value, # B006, ruff catches new occurrences, needs more work
duplicate-except, # B014
duplicate-key, # F601
duplicate-string-formatting-argument, # F
duplicate-value, # F
eval-used, # S307
exec-used, # S102
expression-not-assigned, # B018
f-string-without-interpolation, # F541
forgotten-debug-statement, # T100
format-string-without-interpolation, # F
# global-statement, # PLW0603, ruff catches new occurrences, needs more work
global-variable-not-assigned, # PLW0602
implicit-str-concat, # ISC001
import-self, # PLW0406
inconsistent-quotes, # Q000
invalid-envvar-default, # PLW1508
keyword-arg-before-vararg, # B026
logging-format-interpolation, # G
logging-fstring-interpolation, # G
logging-not-lazy, # G
misplaced-future, # F404
named-expr-without-context, # PLW0131
nested-min-max, # PLW3301
pointless-statement, # B018
raise-missing-from, # B904
redefined-builtin, # A001
try-except-raise, # TRY302
unused-argument, # ARG001, we don't use it
unused-format-string-argument, #F507
unused-format-string-key, # F504
unused-import, # F401
unused-variable, # F841
useless-else-on-loop, # PLW0120
wildcard-import, # F403
bad-classmethod-argument, # N804
consider-iterating-dictionary, # SIM118
empty-docstring, # D419
invalid-name, # N815
line-too-long, # E501, disabled globally
missing-class-docstring, # D101
missing-final-newline, # W292
missing-function-docstring, # D103
missing-module-docstring, # D100
multiple-imports, #E401
singleton-comparison, # E711, E712
subprocess-run-check, # PLW1510
superfluous-parens, # UP034
ungrouped-imports, # I001
unidiomatic-typecheck, # E721
unnecessary-direct-lambda-call, # PLC3002
unnecessary-lambda-assignment, # PLC3001
unnecessary-pass, # PIE790
unneeded-not, # SIM208
useless-import-alias, # PLC0414
wrong-import-order, # I001
wrong-import-position, # E402
comparison-of-constants, # PLR0133
comparison-with-itself, # PLR0124
consider-alternative-union-syntax, # UP007
consider-merging-isinstance, # PLR1701
consider-using-alias, # UP006
consider-using-dict-comprehension, # C402
consider-using-generator, # C417
consider-using-get, # SIM401
consider-using-set-comprehension, # C401
consider-using-sys-exit, # PLR1722
consider-using-ternary, # SIM108
literal-comparison, # F632
property-with-parameters, # PLR0206
super-with-arguments, # UP008
too-many-branches, # PLR0912
too-many-return-statements, # PLR0911
too-many-statements, # PLR0915
trailing-comma-tuple, # COM818
unnecessary-comprehension, # C416
use-a-generator, # C417
use-dict-literal, # C406
use-list-literal, # C405
useless-object-inheritance, # UP004
useless-return, # PLR1711
no-else-break, # RET508
no-else-continue, # RET507
no-else-raise, # RET506
no-else-return, # RET505
broad-except, # BLE001
protected-access, # SLF001
# no-self-use, # PLR6301 # Optional plugin, not enabled
# Handled by mypy
# Ref: <https://github.com/antonagestam/pylint-mypy-overlap>
abstract-class-instantiated,
arguments-differ,
assigning-non-slot,
assignment-from-no-return,
assignment-from-none,
bad-exception-cause,
bad-format-character,
bad-reversed-sequence,
bad-super-call,
bad-thread-instantiation,
catching-non-exception,
comparison-with-callable,
deprecated-class,
dict-iter-missing-items,
format-combined-specification,
global-variable-undefined,
import-error,
inconsistent-mro,
inherit-non-class,
init-is-generator,
invalid-class-object,
invalid-enum-extension,
invalid-envvar-value,
invalid-format-returned,
invalid-hash-returned,
invalid-metaclass,
invalid-overridden-method,
invalid-repr-returned,
invalid-sequence-index,
invalid-slice-index,
invalid-slots-object,
invalid-slots,
invalid-star-assignment-target,
invalid-str-returned,
invalid-unary-operand-type,
invalid-unicode-codec,
isinstance-second-argument-not-valid-type,
method-hidden,
misplaced-format-function,
missing-format-argument-key,
missing-format-attribute,
missing-kwoa,
no-member,
no-value-for-parameter,
non-iterator-returned,
non-str-assignment-to-dunder-name,
nonlocal-and-global,
not-a-mapping,
not-an-iterable,
not-async-context-manager,
not-callable,
not-context-manager,
overridden-final-method,
raising-bad-type,
raising-non-exception,
redundant-keyword-arg,
relative-beyond-top-level,
self-cls-assignment,
signature-differs,
star-needs-assignment-target,
subclassed-final-class,
super-without-brackets,
too-many-function-args,
typevar-double-variance,
typevar-name-mismatch,
unbalanced-dict-unpacking,
unbalanced-tuple-unpacking,
unexpected-keyword-arg,
unhashable-member,
unpacking-non-sequence,
unsubscriptable-object,
unsupported-assignment-operation,
unsupported-binary-operation,
unsupported-delete-operation,
unsupported-membership-test,
used-before-assignment,
using-final-decorator-in-unsupported-version,
wrong-exception-operation,
]
[FORMAT]
max-line-length = 88
[SIMILARITIES]
ignore-imports=yes