Projet

Général

Profil

deprecation.yaml

Benjamin Bohard, 18/04/2024 14:04

Télécharger (14,1 ko)

 
1
allow-shorthand: false
2

    
3
ignore-patterns:
4
  - ^setup.py$
5

    
6
pylint:
7
  enable:
8
    - deprecated-argument
9
    - deprecated-attribute
10
    - deprecated-class
11
    - deprecated-decorator
12
    - deprecated-disable-all
13
    - deprecated-method
14
    - deprecated-module
15
    - deprecated-pragma
16
    - deprecated-typing-alias
17
    - old-deprecated-argument
18
    - old-deprecated-class
19
    - old-deprecated-decorator
20
    - old-deprecated-method
21
    - old-deprecated-module
22
  disable:
23
    - abstract-class-instantiated
24
    - abstract-method
25
    - access-member-before-definition
26
    - anomalous-backslash-in-string
27
    - anomalous-unicode-escape-in-string
28
    - arguments-differ
29
    - arguments-out-of-order
30
    - arguments-renamed
31
    - assert-on-string-literal
32
    - assert-on-tuple
33
    - assigning-non-slot
34
    - assignment-from-no-return
35
    - assignment-from-none
36
    - astroid-error
37
    - attribute-defined-outside-init
38
    - await-outside-async
39
    - bad-builtin
40
    - bad-chained-comparison
41
    - bad-classmethod-argument
42
    - bad-configuration-section
43
    - bad-context-manager
44
    - bad-docstring-quotes
45
    - bad-dunder-name
46
    - bad-except-order
47
    - bad-exception-cause
48
    - bad-exception-context
49
    - bad-file-encoding
50
    - bad-format-character
51
    - bad-format-string
52
    - bad-format-string-key
53
    - bad-indentation
54
    - bad-inline-option
55
    - bad-mcs-classmethod-argument
56
    - bad-mcs-method-argument
57
    - bad-open-mode
58
    - bad-option-value
59
    - bad-plugin-value
60
    - bad-reversed-sequence
61
    - bad-staticmethod-argument
62
    - bad-str-strip-call
63
    - bad-string-format-type
64
    - bad-super-call
65
    - bad-thread-instantiation
66
    - bare-except
67
    - bidirectional-unicode
68
    - binary-op-exception
69
    - blacklisted-name
70
    - boolean-datetime
71
    - broad-except
72
    - broad-exception-caught
73
    - broad-exception-raised
74
    - broken-collections-callable
75
    - broken-noreturn
76
    - c-extension-no-member
77
    - cache-max-size-none
78
    - catching-non-exception
79
    - cell-var-from-loop
80
    - chained-comparison
81
    - class-variable-slots-conflict
82
    - compare-to-empty-string
83
    - compare-to-zero
84
    - comparison-of-constants
85
    - comparison-with-callable
86
    - comparison-with-itself
87
    - condition-evals-to-constant
88
    - config-parse-error
89
    - confusing-consecutive-elif
90
    - confusing-with-statement
91
    - consider-alternative-union-syntax
92
    - consider-iterating-dictionary
93
    - consider-merging-isinstance
94
    - consider-refactoring-into-while-condition
95
    - consider-swap-variables
96
    - consider-ternary-expression
97
    - consider-using-alias
98
    - consider-using-any-or-all
99
    - consider-using-assignment-expr
100
    - consider-using-augmented-assign
101
    - consider-using-dict-comprehension
102
    - consider-using-dict-items
103
    - consider-using-enumerate
104
    - consider-using-f-string
105
    - consider-using-from-import
106
    - consider-using-generator
107
    - consider-using-get
108
    - consider-using-in
109
    - consider-using-join
110
    - consider-using-max-builtin
111
    - consider-using-min-builtin
112
    - consider-using-namedtuple-or-dataclass
113
    - consider-using-set-comprehension
114
    - consider-using-sys-exit
115
    - consider-using-ternary
116
    - consider-using-tuple
117
    - consider-using-with
118
    - continue-in-finally
119
    - cyclic-import
120
    - dangerous-default-value
121
    - dict-init-mutate
122
    - dict-iter-missing-items
123
    - differing-param-doc
124
    - differing-type-doc
125
    - disallowed-name
126
    - docstring-first-line-empty
127
    - duplicate-argument-name
128
    - duplicate-bases
129
    - duplicate-code
130
    - duplicate-except
131
    - duplicate-key
132
    - duplicate-string-formatting-argument
133
    - duplicate-value
134
    - else-if-used
135
    - empty-comment
136
    - empty-docstring
137
    - eq-without-hash
138
    - eval-used
139
    - exec-used
140
    - expression-not-assigned
141
    - f-string-without-interpolation
142
    - fatal
143
    - file-ignored
144
    - fixme
145
    - forgotten-debug-statement
146
    - format-combined-specification
147
    - format-needs-mapping
148
    - format-string-without-interpolation
149
    - function-redefined
150
    - global-at-module-level
151
    - global-statement
152
    - global-variable-not-assigned
153
    - global-variable-undefined
154
    - implicit-flag-alias
155
    - implicit-str-concat
156
    - implicit-str-concat-in-sequence
157
    - import-error
158
    - import-outside-toplevel
159
    - import-private-name
160
    - import-self
161
    - inconsistent-mro
162
    - inconsistent-quotes
163
    - inconsistent-return-statements
164
    - inherit-non-class
165
    - init-is-generator
166
    - invalid-all-format
167
    - invalid-all-object
168
    - invalid-bool-returned
169
    - invalid-bytes-returned
170
    - invalid-character-backspace
171
    - invalid-character-carriage-return
172
    - invalid-character-esc
173
    - invalid-character-nul
174
    - invalid-character-sub
175
    - invalid-character-zero-width-space
176
    - invalid-characters-in-docstring
177
    - invalid-class-object
178
    - invalid-enum-extension
179
    - invalid-envvar-default
180
    - invalid-envvar-value
181
    - invalid-field-call
182
    - invalid-format-index
183
    - invalid-format-returned
184
    - invalid-getnewargs-ex-returned
185
    - invalid-getnewargs-returned
186
    - invalid-hash-returned
187
    - invalid-index-returned
188
    - invalid-length-hint-returned
189
    - invalid-length-returned
190
    - invalid-metaclass
191
    - invalid-name
192
    - invalid-overridden-method
193
    - invalid-repr-returned
194
    - invalid-sequence-index
195
    - invalid-slice-index
196
    - invalid-slice-step
197
    - invalid-slots
198
    - invalid-slots-object
199
    - invalid-star-assignment-target
200
    - invalid-str-returned
201
    - invalid-unary-operand-type
202
    - invalid-unicode-codec
203
    - isinstance-second-argument-not-valid-type
204
    - keyword-arg-before-vararg
205
    - kwarg-superseded-by-positional-arg
206
    - len-as-condition
207
    - line-too-long
208
    - literal-comparison
209
    - locally-disabled
210
    - logging-format-interpolation
211
    - logging-format-truncated
212
    - logging-fstring-interpolation
213
    - logging-not-lazy
214
    - logging-too-few-args
215
    - logging-too-many-args
216
    - logging-unsupported-format
217
    - lost-exception
218
    - lru-cache-decorating-method
219
    - magic-value-comparison
220
    - maybe-no-member
221
    - method-cache-max-size-none
222
    - method-check-failed
223
    - method-hidden
224
    - misplaced-bare-raise
225
    - misplaced-comparison-constant
226
    - misplaced-format-function
227
    - misplaced-future
228
    - missing-any-param-doc
229
    - missing-class-docstring
230
    - missing-docstring
231
    - missing-final-newline
232
    - missing-format-argument-key
233
    - missing-format-attribute
234
    - missing-format-string-key
235
    - missing-function-docstring
236
    - missing-kwoa
237
    - missing-module-docstring
238
    - missing-param-doc
239
    - missing-parentheses-for-call-in-test
240
    - missing-raises-doc
241
    - missing-return-doc
242
    - missing-return-type-doc
243
    - missing-timeout
244
    - missing-type-doc
245
    - missing-yield-doc
246
    - missing-yield-type-doc
247
    - mixed-format-string
248
    - mixed-line-endings
249
    - modified-iterating-dict
250
    - modified-iterating-list
251
    - modified-iterating-set
252
    - multiple-constructor-doc
253
    - multiple-imports
254
    - multiple-statements
255
    - named-expr-without-context
256
    - nan-comparison
257
    - nested-min-max
258
    - no-classmethod-decorator
259
    - no-else-break
260
    - no-else-continue
261
    - no-else-raise
262
    - no-else-return
263
    - no-member
264
    - no-method-argument
265
    - no-name-in-module
266
    - no-self-argument
267
    - no-self-use
268
    - no-staticmethod-decorator
269
    - no-value-for-parameter
270
    - non-ascii-file-name
271
    - non-ascii-module-import
272
    - non-ascii-name
273
    - non-iterator-returned
274
    - non-parent-init-called
275
    - non-str-assignment-to-dunder-name
276
    - nonexistent-operator
277
    - nonlocal-and-global
278
    - nonlocal-without-binding
279
    - not-a-mapping
280
    - not-an-iterable
281
    - not-async-context-manager
282
    - not-callable
283
    - not-context-manager
284
    - not-in-loop
285
    - notimplemented-raised
286
    - old-assignment-from-none
287
    - old-empty-docstring
288
    - old-import-error
289
    - old-misplaced-comparison-constant
290
    - old-missing-param-doc
291
    - old-missing-returns-doc
292
    - old-missing-type-doc
293
    - old-missing-yields-doc
294
    - old-no-self-use
295
    - old-non-ascii-name
296
    - old-non-iterator-returned-1
297
    - old-non-iterator-returned-2
298
    - old-simplifiable-if-statement
299
    - old-too-many-nested-blocks
300
    - old-unbalanced-tuple-unpacking
301
    - old-unidiomatic-typecheck
302
    - old-unpacking-non-sequence
303
    - overlapping-except
304
    - overridden-final-method
305
    - parse-error
306
    - pointless-exception-statement
307
    - pointless-statement
308
    - pointless-string-statement
309
    - positional-only-arguments-expected
310
    - possibly-unused-variable
311
    - potential-index-error
312
    - prefer-typing-namedtuple
313
    - preferred-module
314
    - property-with-parameters
315
    - protected-access
316
    - raise-missing-from
317
    - raising-bad-type
318
    - raising-format-tuple
319
    - raising-non-exception
320
    - raw-checker-failed
321
    - redeclared-assigned-name
322
    - redefined-argument-from-local
323
    - redefined-builtin
324
    - redefined-loop-name
325
    - redefined-outer-name
326
    - redefined-slots-in-subclass
327
    - redefined-variable-type
328
    - redundant-keyword-arg
329
    - redundant-returns-doc
330
    - redundant-typehint-argument
331
    - redundant-u-string-prefix
332
    - redundant-unittest-assert
333
    - redundant-yields-doc
334
    - reimported
335
    - relative-beyond-top-level
336
    - repeated-keyword
337
    - return-arg-in-generator
338
    - return-in-finally
339
    - return-in-init
340
    - return-outside-function
341
    - self-assigning-variable
342
    - self-cls-assignment
343
    - shadowed-import
344
    - shallow-copy-environ
345
    - signature-differs
346
    - simplifiable-condition
347
    - simplifiable-if-expression
348
    - simplifiable-if-statement
349
    - simplify-boolean-expression
350
    - single-string-used-for-slots
351
    - singledispatch-method
352
    - singledispatchmethod-function
353
    - singleton-comparison
354
    - star-needs-assignment-target
355
    - stop-iteration-return
356
    - subclassed-final-class
357
    - subprocess-popen-preexec-fn
358
    - subprocess-run-check
359
    - super-init-not-called
360
    - super-with-arguments
361
    - super-without-brackets
362
    - superfluous-parens
363
    - suppressed-message
364
    - syntax-error
365
    - too-complex
366
    - too-few-format-args
367
    - too-few-public-methods
368
    - too-many-ancestors
369
    - too-many-arguments
370
    - too-many-boolean-expressions
371
    - too-many-branches
372
    - too-many-format-args
373
    - too-many-function-args
374
    - too-many-instance-attributes
375
    - too-many-lines
376
    - too-many-locals
377
    - too-many-nested-blocks
378
    - too-many-positional
379
    - too-many-public-methods
380
    - too-many-return-statements
381
    - too-many-star-expressions
382
    - too-many-statements
383
    - too-many-try-statements
384
    - trailing-comma-tuple
385
    - trailing-newlines
386
    - trailing-whitespace
387
    - truncated-format-string
388
    - try-except-raise
389
    - typevar-double-variance
390
    - typevar-name-incorrect-variance
391
    - typevar-name-mismatch
392
    - unbalanced-dict-unpacking
393
    - unbalanced-tuple-unpacking
394
    - undefined-all-variable
395
    - undefined-loop-variable
396
    - undefined-variable
397
    - unexpected-keyword-arg
398
    - unexpected-line-ending-format
399
    - unexpected-special-method-signature
400
    - ungrouped-imports
401
    - unhashable-dict-key
402
    - unhashable-member
403
    - unidiomatic-typecheck
404
    - unknown-option-value
405
    - unnecessary-comprehension
406
    - unnecessary-dict-index-lookup
407
    - unnecessary-direct-lambda-call
408
    - unnecessary-dunder-call
409
    - unnecessary-ellipsis
410
    - unnecessary-lambda
411
    - unnecessary-lambda-assignment
412
    - unnecessary-list-index-lookup
413
    - unnecessary-negation
414
    - unnecessary-pass
415
    - unnecessary-semicolon
416
    - unneeded-not
417
    - unpacking-non-sequence
418
    - unreachable
419
    - unrecognized-inline-option
420
    - unrecognized-option
421
    - unspecified-encoding
422
    - unsubscriptable-object
423
    - unsupported-assignment-operation
424
    - unsupported-binary-operation
425
    - unsupported-delete-operation
426
    - unsupported-membership-test
427
    - unused-argument
428
    - unused-format-string-argument
429
    - unused-format-string-key
430
    - unused-import
431
    - unused-private-member
432
    - unused-variable
433
    - unused-wildcard-import
434
    - use-a-generator
435
    - use-dict-literal
436
    - use-implicit-booleaness-not-comparison
437
    - use-implicit-booleaness-not-comparison-to-string
438
    - use-implicit-booleaness-not-comparison-to-zero
439
    - use-implicit-booleaness-not-len
440
    - use-list-literal
441
    - use-maxsplit-arg
442
    - use-sequence-for-iteration
443
    - use-set-for-membership
444
    - use-symbolic-message-instead
445
    - use-yield-from
446
    - used-before-assignment
447
    - used-prior-global-declaration
448
    - useless-else-on-loop
449
    - useless-import-alias
450
    - useless-object-inheritance
451
    - useless-option-value
452
    - useless-param-doc
453
    - useless-parent-delegation
454
    - useless-return
455
    - useless-super-delegation
456
    - useless-suppression
457
    - useless-type-doc
458
    - useless-with-lock
459
    - using-constant-test
460
    - using-f-string-in-unsupported-version
461
    - using-final-decorator-in-unsupported-version
462
    - while-used
463
    - wildcard-import
464
    - wrong-exception-operation
465
    - wrong-import-order
466
    - wrong-import-position
467
    - wrong-spelling-in-comment
468
    - wrong-spelling-in-docstring
469
    - yield-inside-async-function
470
    - yield-outside-function
471

    
472

    
473

    
474
  options:
475
    max-locals: 15
476
    max-returns: 6
477
    max-branches: 15
478
    max-statements: 60
479
    min-public-methods: 1
480
    max-public-methods: 20
481
    max-line-length: 99
482

    
483
pycodestyle:
484
  enable:
485
    - W605
486
  disable:
487
    - E101
488
    - E111
489
    - E112
490
    - E113
491
    - E114
492
    - E115
493
    - E116
494
    - E117
495
    - E121
496
    - E122
497
    - E123
498
    - E124
499
    - E125
500
    - E126
501
    - E127
502
    - E128
503
    - E129
504
    - E131
505
    - E133
506
    - E201
507
    - E202
508
    - E203
509
    - E211
510
    - E221
511
    - E222
512
    - E223
513
    - E224
514
    - E225
515
    - E226
516
    - E227
517
    - E228
518
    - E231
519
    - E241
520
    - E242
521
    - E251
522
    - E261
523
    - E262
524
    - E265
525
    - E266
526
    - E271
527
    - E272
528
    - E273
529
    - E274
530
    - E275
531
    - E301
532
    - E302
533
    - E303
534
    - E304
535
    - E305
536
    - E306
537
    - E401
538
    - E402
539
    - E501
540
    - E502
541
    - E701
542
    - E702
543
    - E703
544
    - E704
545
    - E711
546
    - E712
547
    - E713
548
    - E714
549
    - E721
550
    - E722
551
    - E731
552
    - E741
553
    - E742
554
    - E743
555
    - E901
556
    - E902
557
    - W191
558
    - W291
559
    - W292
560
    - W293
561
    - W391
562
    - W503
563
    - W504
564
    - W505
565

    
566
pyroma:
567
  run: false
568

    
569
pydocstyle:
570
  run: false
571

    
572
mccabe:
573
  run: false
574

    
575
pyflakes:
576
  run: false
577

    
578
dodgy:
579
  run: false