aboutsummaryrefslogtreecommitdiffstats
path: root/build/config/tests/flake8/flake8.conf
blob: fda445a3f035f65ae0898d49ea33cf4029ee81f5 (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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
[flake8]
jobs = 2
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 ':' (for black https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#e203)
    E203,
    # missing whitespace around arithmetic operator
    E226,
    # multiple spaces after ',' or tab after ','
    E24,
    # multiple statements on one line (for black https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#e701-e704)
    E701,
    E704,

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

    # astroid-error
    PLF002,
    # function-redefined
    PLE102,
    # bad-reversed-sequence
    PLE111,
    # method-hidden
    PLE202,
    # no-method-argument
    PLE211,
    # no-self-argument
    PLE213,
    # access-member-before-definition
    PLE203,
    # class-variable-slots-conflict
    PLE242,
    # invalid-str-returned
    PLE307,
    # invalid-hash-returned
    PLE309,
    # relative-beyond-top-level
    PLE402,
    # used-before-assignment
    PLE601,
    # undefined-variable
    PLE602,
    # undefined-all-variable
    PLE603,
    # invalid-all-object
    PLE604,
    # no-name-in-module
    PLE611,
    # raising-bad-type
    PLE702,
    # catching-non-exception
    PLE712,
    # bad-super-call
    PLE003,
    # bad-str-strip-call
    PLE310,
    # not-async-context-manager
    PLE701,

    # no-member
    PLE101,
    # not-callable
    PLE102,
    # assignment-from-no-return
    PLE111,
    # no-value-for-parameter
    PLE120,
    # too-many-function-args
    PLE121,
    # unexpected-keyword-arg
    PLE123,
    # redundant-keyword-arg
    PLE124,
    # missing-kwoa
    PLE125,
    # invalid-sequence-index
    PLE126,
    # invalid-slice-index
    PLE127,
    # assignment-from-none
    PLE128,
    # not-context-manager
    PLE129,
    # invalid-unary-operand-type
    PLE130,
    # unsupported-binary-operation
    PLE131,
    # repeated-keyword
    PLE132,
    # not-an-iterable
    PLE133,
    # not-a-mapping
    PLE134,
    # unsupported-membership-test
    PLE135,
    # unsubscriptable-object
    PLE136,
    # unsupported-assignment-operation
    PLE137,
    # unsupported-delete-operation
    PLE138,
    # invalid-metaclass
    PLE139,
    # dict-iter-missing-items
    PLE141,
    # await-outside-async
    PLE142,
    # unhashable-member
    PLE143,

    # invalid-unicode-codec
    PLE501,
    # bidirectional-unicode
    PLE502,
    # invalid-character-backspace
    PLE510,
    # invalid-character-carriage-return
    PLE511,
    # invalid-character-sub
    PLE512,
    # invalid-character-esc
    PLE513,
    # invalid-character-nul
    PLE514,
    # invalid-character-zero-width-space
    PLE515,

    # import-error
    PLE401,

    # possibly-used-before-assignment
    PLE606,

    # invalid-name
    PLC103,
    # disallowed-name
    PLC104,
    # typevar-name-incorrect-variance
    PLC105,
    # empty-docstring
    PLC112,
    # missing-module-docstring
    PLC114,
    # missing-class-docstring
    PLC115,
    # missing-function-docstring
    PLC116,
    # unnecessary-negation
    PLC117,
    # singleton-comparison
    PLC121,
    # unidiomatic-typecheck
    PLC123,
    # typevar-double-variance
    PLC131,
    # typevar-name-mismatch
    PLC132,
    # consider-using-enumerate
    PLC200,
    # consider-iterating-dictionary
    PLC201,
    # bad-classmethod-argument
    PLC202,
    # bad-mcs-classmethod-argument
    PLC204,
    # single-string-used-for-slots
    PLC205,
    # consider-using-dict-items
    PLC206,
    # use-maxsplit-arg
    PLC207,
    # use-sequence-for-iteration
    PLC208,
    # consider-using-f-string
    PLC209,
    # line-too-long
    PLC301,
    # too-many-lines
    PLC302,
    # trailing-whitespace
    PLC303,
    # missing-final-newline
    PLC304,
    # trailing-newlines
    PLC305,
    # superfluous-parens
    PLC325,
    # unexpected-line-ending-format
    PLC328,
    # wrong-spelling-in-comment
    PLC401,
    # wrong-spelling-in-docstring
    PLC402,
    # invalid-characters-in-docstring
    PLC403,
    # multiple-imports
    PLC410,
    # wrong-import-order
    PLC411,
    # ungrouped-imports
    PLC412,
    # wrong-import-position
    PLC413,
    # useless-import-alias
    PLC414,
    # import-outside-toplevel
    PLC415,
    # use-implicit-booleaness-not-len
    PLC802,
    # use-implicit-booleaness-not-comparison
    PLC803,
    # unnecessary-dunder-call
    PLC801,
    # unnecessary-lambda-assignment
    PLC001,
    # unnecessary-direct-lambda-call
    PLC002,
    # raw-checker-failed
    PLI001,
    # bad-inline-option
    PLI010,
    # locally-disabled
    PLI011,
    # file-ignored
    PLI013,
    # suppressed-message
    PLI020,
    # useless-suppression
    PLI021,
    # deprecated-pragma
    PLI022,
    # use-symbolic-message-instead
    PLI023,
    # c-extension-no-member
    PLI101,
    # useless-option-value
    PLR022,
    # comparison-with-itself
    PLR124,
    # comparison-of-constants
    PLR133,
    # useless-object-inheritance
    PLR205,
    # property-with-parameters
    PLR206,
    # cyclic-import
    PLR401,
    # consider-using-from-import
    PLR402,
    # duplicate-code
    PLR801,
    # too-many-ancestors
    PLR901,
    # too-many-instance-attributes
    PLR902,
    # too-few-public-methods
    PLR903,
    # too-many-public-methods
    PLR904,
    # too-many-return-statements
    PLR911,
    # too-many-branches
    PLR912,
    # too-many-arguments
    PLR913,
    # too-many-locals
    PLR914,
    # too-many-statements
    PLR915,
    # too-many-boolean-expressions
    PLR916,
    # consider-merging-isinstance
    PLR701,
    # too-many-nested-blocks
    PLR702,
    # simplifiable-if-statement
    PLR703,
    # redefined-argument-from-local
    PLR704,
    # no-else-return
    PLR705,
    # consider-using-ternary
    PLR706,
    # trailing-comma-tuple
    PLR707,
    # stop-iteration-return
    PLR708,
    # simplify-boolean-expression
    PLR709,
    # inconsistent-return-statements
    PLR710,
    # useless-return
    PLR711,
    # consider-using-join
    PLR713,
    # consider-using-in
    PLR714,
    # chained-comparison
    PLR716,
    # consider-using-dict-comprehension
    PLR717,
    # consider-using-set-comprehension
    PLR718,
    # simplifiable-if-expression
    PLR719,
    # no-else-raise
    PLR720,
    # unnecessary-comprehension
    PLR721,
    # consider-using-sys-exit
    PLR722,
    # no-else-break
    PLR723,
    # no-else-continue
    PLR724,
    # super-with-arguments
    PLR725,
    # consider-using-generator
    PLR728,
    # use-a-generator
    PLR729,
    # consider-using-min-builtin
    PLR730,
    # consider-using-max-builtin
    PLR731,
    # consider-using-with
    PLR732,
    # use-list-literal
    PLR734,
    # use-dict-literal
    PLR735,
    # use-yield-from
    PLR737,
    # unknown-option-value
    PLW012,
    # unreachable
    PLW101,
    # dangerous-default-value
    PLW102,
    # pointless-statement
    PLW104,
    # pointless-string-statement
    PLW105,
    # expression-not-assigned
    PLW106,
    # unnecessary-pass
    PLW107,
    # unnecessary-lambda
    PLW108,
    # useless-else-on-loop
    PLW120,
    # exec-used
    PLW122,
    # eval-used
    PLW123,
    # using-constant-test
    PLW125,
    # missing-parentheses-for-call-in-test
    PLW126,
    # self-assigning-variable
    PLW127,
    # assert-on-string-literal
    PLW129,
    # duplicate-value
    PLW130,
    # pointless-exception-statement
    PLW133,
    # return-in-finally
    PLW134,
    # contextmanager-generator-missing-cleanup
    PLW135,
    # comparison-with-callable
    PLW143,
    # lost-exception
    PLW150,
    # nan-comparison
    PLW177,
    # assert-on-tuple
    PLW199,
    # attribute-defined-outside-init
    PLW201,
    # protected-access
    PLW212,
    # arguments-differ
    PLW221,
    # abstract-method
    PLW223,
    # super-init-not-called
    PLW231,
    # non-parent-init-called
    PLW233,
    # invalid-overridden-method
    PLW236,
    # arguments-renamed
    PLW237,
    # unused-private-member
    PLW238,
    # overridden-final-method
    PLW239,
    # subclassed-final-class
    PLW240,
    # useless-parent-delegation
    PLW246,
    # unnecessary-semicolon
    PLW301,
    # f-string-without-interpolation
    PLW309,
    # format-string-without-interpolation
    PLW310,
    # wildcard-import
    PLW401,
    # reimported
    PLW404,
    # import-self
    PLW406,
    # preferred-module
    PLW407,
    # misplaced-future
    PLW410,
    # fixme
    PLW511,
    # global-variable-not-assigned
    PLW602,
    # global-statement
    PLW603,
    # global-at-module-level
    PLW604,
    # unused-import
    PLW611,
    # unused-variable
    PLW612,
    # unused-argument
    PLW613,
    # unused-wildcard-import
    PLW614,
    # redefined-outer-name
    PLW621,
    # redefined-builtin
    PLW622,
    # undefined-loop-variable
    PLW631,
    # unbalanced-tuple-unpacking
    PLW632,
    # cell-var-from-loop
    PLW640,
    # possibly-unused-variable
    PLW641,
    # bare-except
    PLW702,
    # broad-except
    PLW703,
    # try-except-raise
    PLW706,
    # raise-missing-from
    PLW707,
    # raising-format-tuple
    PLW715,
    # wrong-exception-operation
    PLW716,
    # keyword-arg-before-vararg
    PLW113,
    # arguments-out-of-order
    PLW114,
    # non-str-assignment-to-dunder-name
    PLW115,
    # isinstance-second-argument-not-valid-type
    PLW116,
    # logging-not-lazy
    PLW201,
    # logging-format-interpolation
    PLW202,
    # logging-fstring-interpolation
    PLW203,
    # bad-format-string-key
    PLW300,
    # unused-format-string-key
    PLW301,
    # bad-format-string
    PLW302,
    # missing-format-argument-key
    PLW303,
    # unused-format-string-argument
    PLW304,
    # format-combined-specification
    PLW305,
    # missing-format-attribute
    PLW306,
    # invalid-format-index
    PLW307,
    # duplicate-string-formatting-argument
    PLW308,
    # anomalous-backslash-in-string
    PLW401,
    # anomalous-unicode-escape-in-string
    PLW402,
    # implicit-str-concat
    PLW404,
    # inconsistent-quotes
    PLW405,
    # redundant-u-string-prefix
    PLW406,
    # bad-open-mode
    PLW501,
    # boolean-datetime
    PLW502,
    # redundant-unittest-assert
    PLW503,
    # bad-thread-instantiation
    PLW506,
    # shallow-copy-environ
    PLW507,
    # invalid-envvar-default
    PLW508,
    # subprocess-popen-preexec-fn
    PLW509,
    # subprocess-run-check
    PLW510,
    # unspecified-encoding
    PLW514,
    # forgotten-debug-statement
    PLW515,
    # method-cache-max-size-none
    PLW518,
    # useless-with-lock
    PLW101,
    # non-ascii-file-name
    PLW402,
    # using-f-string-in-unsupported-version
    PLW601,
    # using-final-decorator-in-unsupported-version
    PLW602,
    # broad-exception-caught
    PLW718,
    # broad-exception-raised
    PLW719,
    # missing-timeout
    PLW101,
    # deprecated-module
    PLW901,
    # deprecated-argument
    PLW903,
    # deprecated-class
    PLW904,
    # deprecated-decorator
    PLW905,

max-line-length = 200