aboutsummaryrefslogtreecommitdiffstats
path: root/build/config/tests/flake8/flake8.conf
blob: 3a756e5876ad92e0d8d263bf192bf74605ef84b6 (plain) (blame)
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
[flake8]
jobs = 1
select =
    E, W,  # pep8 errors and warnings
    F,  # pyflakes
    C9, # McCabe
    N8, # Naming Conventions
    PL, # Flake8-Pylint
    #B, S,  # bandit
    #C,  # commas
    #D,  # docstrings
    #P,  # string-format
    #Q,  # quotes

ignore =
    # closing bracket does not match indentation of opening bracket's line
    E123,
    # whitespace before ':'
    E203,
    # missing whitespace around arithmetic operator
    E226,
    # multiple spaces after ',' or tab after ','
    E24,

    # line break before binary operator
    W503,
    # line break after binary operator
    W504,

    # astroid-error
    PLF0002,
    # function-redefined
    PLE0102,
    # bad-reversed-sequence
    PLE0111,
    # no-method-argument
    PLE0211,
    # no-self-argument
    PLE0213,
    # access-member-before-definition
    PLE0203,
    # class-variable-slots-conflict
    PLE0242,
    # invalid-str-returned
    PLE0307,
    # invalid-hash-returned
    PLE0309,
    # relative-beyond-top-level
    PLE0402,
    # used-before-assignment
    PLE0601,
    # undefined-variable
    PLE0602,
    # undefined-all-variable
    PLE0603,
    # invalid-all-object
    PLE0604,
    # no-name-in-module
    PLE0611,
    # raising-bad-type
    PLE0702,
    # bad-super-call
    PLE1003,
    # bad-str-strip-call
    PLE1310,
    # not-async-context-manager
    PLE1701,

    # no-member
    PLE1101,
    # not-callable
    PLE1102,
    # assignment-from-no-return
    PLE1111,
    # no-value-for-parameter
    PLE1120,
    # too-many-function-args
    PLE1121,
    # unexpected-keyword-arg
    PLE1123,
    # redundant-keyword-arg
    PLE1124,
    # missing-kwoa
    PLE1125,
    # invalid-sequence-index
    PLE1126,
    # invalid-slice-index
    PLE1127,
    # assignment-from-none
    PLE1128,
    # not-context-manager
    PLE1129,
    # invalid-unary-operand-type
    PLE1130,
    # unsupported-binary-operation
    PLE1131,
    # repeated-keyword
    PLE1132,
    # not-an-iterable
    PLE1133,
    # not-a-mapping
    PLE1134,
    # unsupported-membership-test
    PLE1135,
    # unsubscriptable-object
    PLE1136,
    # unsupported-assignment-operation
    PLE1137,
    # unsupported-delete-operation
    PLE1138,
    # invalid-metaclass
    PLE1139,
    # dict-iter-missing-items
    PLE1141,
    # await-outside-async
    PLE1142,
    # unhashable-member
    PLE1143,

    # invalid-unicode-codec
    PLE2501,
    # bidirectional-unicode
    PLE2502,
    # invalid-character-backspace
    PLE2510,
    # invalid-character-carriage-return
    PLE2511,
    # invalid-character-sub
    PLE2512,
    # invalid-character-esc
    PLE2513,
    # invalid-character-nul
    PLE2514,
    # invalid-character-zero-width-space
    PLE2515,

    # import-error
    PLE0401,

    # invalid-name
    PLC0103,
    # disallowed-name
    PLC0104,
    # typevar-name-incorrect-variance
    PLC0105,
    # missing-module-docstring
    PLC0114,
    # missing-class-docstring
    PLC0115,
    # missing-function-docstring
    PLC0116,
    # singleton-comparison
    PLC0121,
    # unidiomatic-typecheck
    PLC0123,
    # typevar-double-variance
    PLC0131,
    # typevar-name-mismatch
    PLC0132,
    # consider-using-enumerate
    PLC0200,
    # consider-iterating-dictionary
    PLC0201,
    # bad-classmethod-argument
    PLC0202,
    # bad-mcs-classmethod-argument
    PLC0204,
    # single-string-used-for-slots
    PLC0205,
    # consider-using-dict-items
    PLC0206,
    # use-maxsplit-arg
    PLC0207,
    # use-sequence-for-iteration
    PLC0208,
    # consider-using-f-string
    PLC0209,
    # line-too-long
    PLC0301,
    # too-many-lines
    PLC0302,
    # trailing-whitespace
    PLC0303,
    # missing-final-newline
    PLC0304,
    # trailing-newlines
    PLC0305,
    # superfluous-parens
    PLC0325,
    # unexpected-line-ending-format
    PLC0328,
    # wrong-spelling-in-comment
    PLC0401,
    # wrong-spelling-in-docstring
    PLC0402,
    # invalid-characters-in-docstring
    PLC0403,
    # multiple-imports
    PLC0410,
    # wrong-import-order
    PLC0411,
    # ungrouped-imports
    PLC0412,
    # wrong-import-position
    PLC0413,
    # useless-import-alias
    PLC0414,
    # import-outside-toplevel
    PLC0415,
    # use-implicit-booleaness-not-len
    PLC1802,
    # use-implicit-booleaness-not-comparison
    PLC1803,
    # unnecessary-dunder-call
    PLC2801,
    # unnecessary-lambda-assignment
    PLC3001,
    # unnecessary-direct-lambda-call
    PLC3002,
    # raw-checker-failed
    PLI0001,
    # bad-inline-option
    PLI0010,
    # locally-disabled
    PLI0011,
    # file-ignored
    PLI0013,
    # suppressed-message
    PLI0020,
    # useless-suppression
    PLI0021,
    # deprecated-pragma
    PLI0022,
    # use-symbolic-message-instead
    PLI0023,
    # c-extension-no-member
    PLI1101,
    # useless-option-value
    PLR0022,
    # comparison-with-itself
    PLR0124,
    # comparison-of-constants
    PLR0133,
    # useless-object-inheritance
    PLR0205,
    # cyclic-import
    PLR0401,
    # consider-using-from-import
    PLR0402,
    # duplicate-code
    PLR0801,
    # too-many-ancestors
    PLR0901,
    # too-many-instance-attributes
    PLR0902,
    # too-few-public-methods
    PLR0903,
    # too-many-public-methods
    PLR0904,
    # too-many-return-statements
    PLR0911,
    # too-many-branches
    PLR0912,
    # too-many-arguments
    PLR0913,
    # too-many-locals
    PLR0914,
    # too-many-statements
    PLR0915,
    # too-many-boolean-expressions
    PLR0916,
    # consider-merging-isinstance
    PLR1701,
    # too-many-nested-blocks
    PLR1702,
    # simplifiable-if-statement
    PLR1703,
    # redefined-argument-from-local
    PLR1704,
    # no-else-return
    PLR1705,
    # consider-using-ternary
    PLR1706,
    # trailing-comma-tuple
    PLR1707,
    # stop-iteration-return
    PLR1708,
    # simplify-boolean-expression
    PLR1709,
    # inconsistent-return-statements
    PLR1710,
    # useless-return
    PLR1711,
    # consider-using-in
    PLR1714,
    # chained-comparison
    PLR1716,
    # consider-using-dict-comprehension
    PLR1717,
    # consider-using-set-comprehension
    PLR1718,
    # simplifiable-if-expression
    PLR1719,
    # no-else-raise
    PLR1720,
    # unnecessary-comprehension
    PLR1721,
    # consider-using-sys-exit
    PLR1722,
    # no-else-break
    PLR1723,
    # no-else-continue
    PLR1724,
    # super-with-arguments
    PLR1725,
    # consider-using-generator
    PLR1728,
    # use-a-generator
    PLR1729,
    # use-list-literal
    PLR1734,
    # use-dict-literal
    PLR1735,
    # unknown-option-value
    PLW0012,
    # unreachable
    PLW0101,
    # dangerous-default-value
    PLW0102,
    # pointless-statement
    PLW0104,
    # pointless-string-statement
    PLW0105,
    # expression-not-assigned
    PLW0106,
    # unnecessary-pass
    PLW0107,
    # unnecessary-lambda
    PLW0108,
    # useless-else-on-loop
    PLW0120,
    # eval-used
    PLW0123,
    # using-constant-test
    PLW0125,
    # missing-parentheses-for-call-in-test
    PLW0126,
    # self-assigning-variable
    PLW0127,
    # duplicate-value
    PLW0130,
    # comparison-with-callable
    PLW0143,
    # nan-comparison
    PLW0177,
    # assert-on-tuple
    PLW0199,
    # attribute-defined-outside-init
    PLW0201,
    # protected-access
    PLW0212,
    # arguments-differ
    PLW0221,
    # abstract-method
    PLW0223,
    # super-init-not-called
    PLW0231,
    # non-parent-init-called
    PLW0233,
    # invalid-overridden-method
    PLW0236,
    # arguments-renamed
    PLW0237,
    # unused-private-member
    PLW0238,
    # overridden-final-method
    PLW0239,
    # subclassed-final-class
    PLW0240,
    # useless-parent-delegation
    PLW0246,
    # unnecessary-semicolon
    PLW0301,
    # wildcard-import
    PLW0401,
    # reimported
    PLW0404,
    # import-self
    PLW0406,
    # preferred-module
    PLW0407,
    # misplaced-future
    PLW0410,
    # fixme
    PLW0511,
    # global-variable-not-assigned
    PLW0602,
    # global-statement
    PLW0603,
    # global-at-module-level
    PLW0604,
    # unused-import
    PLW0611,
    # unused-variable
    PLW0612,
    # unused-argument
    PLW0613,
    # unused-wildcard-import
    PLW0614,
    # redefined-outer-name
    PLW0621,
    # redefined-builtin
    PLW0622,
    # undefined-loop-variable
    PLW0631,
    # unbalanced-tuple-unpacking
    PLW0632,
    # cell-var-from-loop
    PLW0640,
    # possibly-unused-variable
    PLW0641,
    # bare-except
    PLW0702,
    # broad-except
    PLW0703,
    # try-except-raise
    PLW0706,
    # raise-missing-from
    PLW0707,
    # raising-format-tuple
    PLW0715,
    # wrong-exception-operation
    PLW0716,
    # keyword-arg-before-vararg
    PLW1113,
    # arguments-out-of-order
    PLW1114,
    # non-str-assignment-to-dunder-name
    PLW1115,
    # isinstance-second-argument-not-valid-type
    PLW1116,
    # logging-not-lazy
    PLW1201,
    # logging-format-interpolation
    PLW1202,
    # logging-fstring-interpolation
    PLW1203,
    # bad-format-string-key
    PLW1300,
    # unused-format-string-key
    PLW1301,
    # bad-format-string
    PLW1302,
    # missing-format-argument-key
    PLW1303,
    # unused-format-string-argument
    PLW1304,
    # format-combined-specification
    PLW1305,
    # missing-format-attribute
    PLW1306,
    # invalid-format-index
    PLW1307,
    # duplicate-string-formatting-argument
    PLW1308,
    # anomalous-backslash-in-string
    PLW1401,
    # anomalous-unicode-escape-in-string
    PLW1402,
    # implicit-str-concat
    PLW1404,
    # inconsistent-quotes
    PLW1405,
    # redundant-u-string-prefix
    PLW1406,
    # bad-open-mode
    PLW1501,
    # boolean-datetime
    PLW1502,
    # redundant-unittest-assert
    PLW1503,
    # bad-thread-instantiation
    PLW1506,
    # shallow-copy-environ
    PLW1507,
    # invalid-envvar-default
    PLW1508,
    # subprocess-popen-preexec-fn
    PLW1509,
    # subprocess-run-check
    PLW1510,
    # unspecified-encoding
    PLW1514,
    # forgotten-debug-statement
    PLW1515,
    # method-cache-max-size-none
    PLW1518,
    # useless-with-lock
    PLW2101,
    # non-ascii-file-name
    PLW2402,
    # using-f-string-in-unsupported-version
    PLW2601,
    # using-final-decorator-in-unsupported-version
    PLW2602,
    # missing-timeout
    PLW3101,
    # deprecated-module
    PLW4901,
    # deprecated-argument
    PLW4903,
    # deprecated-class
    PLW4904,
    # deprecated-decorator
    PLW4905,

max-line-length = 200