@@ -318,7 +318,61 @@ ignore = [
318
318
# pairwise-over-zipped (>=PY310 only)
319
319
" RUF007" ,
320
320
# mutable-class-default
321
- " RUF012"
321
+ " RUF012" ,
322
+
323
+ # Additional pylint rules
324
+ # literal-membership
325
+ " PLR6201" , # 847 errors
326
+ # Method could be a function, class method, or static method
327
+ " PLR6301" , # 11411 errors
328
+ # Private name import
329
+ " PLC2701" , # 27 errors
330
+ # Too many positional arguments (6/5)
331
+ " PLR0917" , # 470 errors
332
+ # compare-to-empty-string
333
+ " PLC1901" ,
334
+ # `tempfile.NamedTemporaryFile` in text mode without explicit `encoding` argument
335
+ " PLW1514" , # 1 error
336
+ # Object does not implement `__hash__` method
337
+ " PLW1641" , # 16 errors
338
+ # Bad or misspelled dunder method name
339
+ " PLW3201" , # 69 errors, seems to be all false positive
340
+ # Unnecessary lookup of dictionary value by key
341
+ " PLR1733" , # 5 errors, it seems like we wannt to ignore these
342
+ # Unnecessary lookup of list item by index
343
+ " PLR1736" , # 4 errors, we're currently having inline pylint ignore
344
+ # empty-comment
345
+ " PLR2044" , # autofixable
346
+ # Unpacking a dictionary in iteration without calling `.items()`
347
+ " PLE1141" , # autofixable
348
+ # import-outside-toplevel
349
+ " PLC0415" ,
350
+ # unnecessary-dunder-call
351
+ " PLC2801" ,
352
+ # comparison-with-itself
353
+ " PLR0124" ,
354
+ # too-many-public-methods
355
+ " PLR0904" ,
356
+ # too-many-return-statements
357
+ " PLR0911" ,
358
+ # too-many-branches
359
+ " PLR0912" ,
360
+ # too-many-arguments
361
+ " PLR0913" ,
362
+ # too-many-locals
363
+ " PLR0914" ,
364
+ # too-many-statements
365
+ " PLR0915" ,
366
+ # too-many-boolean-expressions
367
+ " PLR0916" ,
368
+ # too-many-nested-blocks
369
+ " PLR1702" ,
370
+ # redefined-argument-from-local
371
+ " PLR1704" ,
372
+ # unnecessary-lambda
373
+ " PLW0108" ,
374
+ # global-statement
375
+ " PLW0603" ,
322
376
]
323
377
324
378
exclude = [
@@ -367,110 +421,6 @@ mark-parentheses = false
367
421
[tool .ruff .format ]
368
422
docstring-code-format = true
369
423
370
- [tool .pylint .messages_control ]
371
- max-line-length = 88
372
- disable = [
373
- # intentionally turned off
374
- " bad-mcs-classmethod-argument" ,
375
- " broad-except" ,
376
- " c-extension-no-member" ,
377
- " comparison-with-itself" ,
378
- " consider-using-enumerate" ,
379
- " import-error" ,
380
- " import-outside-toplevel" ,
381
- " invalid-name" ,
382
- " invalid-unary-operand-type" ,
383
- " line-too-long" ,
384
- " no-else-continue" ,
385
- " no-else-raise" ,
386
- " no-else-return" ,
387
- " no-member" ,
388
- " no-name-in-module" ,
389
- " not-an-iterable" ,
390
- " overridden-final-method" ,
391
- " pointless-statement" ,
392
- " redundant-keyword-arg" ,
393
- " singleton-comparison" ,
394
- " too-many-ancestors" ,
395
- " too-many-arguments" ,
396
- " too-many-boolean-expressions" ,
397
- " too-many-branches" ,
398
- " too-many-function-args" ,
399
- " too-many-instance-attributes" ,
400
- " too-many-locals" ,
401
- " too-many-nested-blocks" ,
402
- " too-many-public-methods" ,
403
- " too-many-return-statements" ,
404
- " too-many-statements" ,
405
- " unexpected-keyword-arg" ,
406
- " ungrouped-imports" ,
407
- " unsubscriptable-object" ,
408
- " unsupported-assignment-operation" ,
409
- " unsupported-membership-test" ,
410
- " unused-import" ,
411
- " use-dict-literal" ,
412
- " use-implicit-booleaness-not-comparison" ,
413
- " use-implicit-booleaness-not-len" ,
414
- " wrong-import-order" ,
415
- " wrong-import-position" ,
416
- " redefined-loop-name" ,
417
-
418
- # misc
419
- " abstract-class-instantiated" ,
420
- " no-value-for-parameter" ,
421
- " undefined-variable" ,
422
- " unpacking-non-sequence" ,
423
- " used-before-assignment" ,
424
-
425
- # pylint type "C": convention, for programming standard violation
426
- " missing-class-docstring" ,
427
- " missing-function-docstring" ,
428
- " missing-module-docstring" ,
429
- " superfluous-parens" ,
430
- " too-many-lines" ,
431
- " unidiomatic-typecheck" ,
432
- " unnecessary-dunder-call" ,
433
- " unnecessary-lambda-assignment" ,
434
-
435
- # pylint type "R": refactor, for bad code smell
436
- " consider-using-with" ,
437
- " cyclic-import" ,
438
- " duplicate-code" ,
439
- " inconsistent-return-statements" ,
440
- " redefined-argument-from-local" ,
441
- " too-few-public-methods" ,
442
-
443
- # pylint type "W": warning, for python specific problems
444
- " abstract-method" ,
445
- " arguments-differ" ,
446
- " arguments-out-of-order" ,
447
- " arguments-renamed" ,
448
- " attribute-defined-outside-init" ,
449
- " broad-exception-raised" ,
450
- " comparison-with-callable" ,
451
- " dangerous-default-value" ,
452
- " deprecated-module" ,
453
- " eval-used" ,
454
- " expression-not-assigned" ,
455
- " fixme" ,
456
- " global-statement" ,
457
- " invalid-overridden-method" ,
458
- " keyword-arg-before-vararg" ,
459
- " possibly-unused-variable" ,
460
- " protected-access" ,
461
- " raise-missing-from" ,
462
- " redefined-builtin" ,
463
- " redefined-outer-name" ,
464
- " self-cls-assignment" ,
465
- " signature-differs" ,
466
- " super-init-not-called" ,
467
- " try-except-raise" ,
468
- " unnecessary-lambda" ,
469
- " unused-argument" ,
470
- " unused-variable" ,
471
- " using-constant-test"
472
- ]
473
-
474
424
[tool .pytest .ini_options ]
475
425
# sync minversion with pyproject.toml & install.rst
476
426
minversion = " 7.3.2"
0 commit comments