|
| 1 | +exclude = [ |
| 2 | + "migrations/*", |
| 3 | +] |
| 4 | +line-length = 120 |
| 5 | + |
| 6 | +[format] |
| 7 | +quote-style = "double" |
| 8 | + |
| 9 | +[lint] |
| 10 | +preview = true |
| 11 | +select = [ |
| 12 | + "B", # flake8-bugbear rules |
| 13 | + "C4", # flake8-comprehensions |
| 14 | + "E", # pycodestyle E rules |
| 15 | + "F", # pyflakes rules |
| 16 | + "FURB", # refurb rules |
| 17 | + "I", # isort rules |
| 18 | + "N", # pep8-naming |
| 19 | + "PT", # flake8-pytest-style rules |
| 20 | + "PLC0208", # iteration-over-set |
| 21 | + "PLC2801", # unnecessary-dunder-call |
| 22 | + "PLC0414", # useless-import-alias |
| 23 | + "PLR0402", # manual-from-import |
| 24 | + "PLR1711", # useless-return |
| 25 | + "PLR1714", # repeated-equality-comparison |
| 26 | + "RUF013", # implicit-optional |
| 27 | + "RUF019", # unnecessary-key-check |
| 28 | + "RUF100", # unused-noqa |
| 29 | + "RUF101", # redirected-noqa |
| 30 | + "RUF200", # invalid-pyproject-toml |
| 31 | + "S506", # unsafe-yaml-load |
| 32 | + "SIM", # flake8-simplify rules |
| 33 | + "TRY400", # error-instead-of-exception |
| 34 | + "TRY401", # verbose-log-message |
| 35 | + "UP", # pyupgrade rules |
| 36 | + "W191", # tab-indentation |
| 37 | + "W605", # invalid-escape-sequence |
| 38 | +] |
| 39 | + |
| 40 | +ignore = [ |
| 41 | + "E402", # module-import-not-at-top-of-file |
| 42 | + "E711", # none-comparison |
| 43 | + "E712", # true-false-comparison |
| 44 | + "E721", # type-comparison |
| 45 | + "E722", # bare-except |
| 46 | + "E731", # lambda-assignment |
| 47 | + "F821", # undefined-name |
| 48 | + "F841", # unused-variable |
| 49 | + "FURB113", # repeated-append |
| 50 | + "FURB152", # math-constant |
| 51 | + "UP007", # non-pep604-annotation |
| 52 | + "UP032", # f-string |
| 53 | + "B005", # strip-with-multi-characters |
| 54 | + "B006", # mutable-argument-default |
| 55 | + "B007", # unused-loop-control-variable |
| 56 | + "B026", # star-arg-unpacking-after-keyword-arg |
| 57 | + "B904", # raise-without-from-inside-except |
| 58 | + "B905", # zip-without-explicit-strict |
| 59 | + "N806", # non-lowercase-variable-in-function |
| 60 | + "N815", # mixed-case-variable-in-class-scope |
| 61 | + "PT011", # pytest-raises-too-broad |
| 62 | + "SIM102", # collapsible-if |
| 63 | + "SIM103", # needless-bool |
| 64 | + "SIM105", # suppressible-exception |
| 65 | + "SIM107", # return-in-try-except-finally |
| 66 | + "SIM108", # if-else-block-instead-of-if-exp |
| 67 | + "SIM113", # eumerate-for-loop |
| 68 | + "SIM117", # multiple-with-statements |
| 69 | + "SIM210", # if-expr-with-true-false |
| 70 | + "SIM300", # yoda-conditions, |
| 71 | +] |
| 72 | + |
| 73 | +[lint.per-file-ignores] |
| 74 | +"__init__.py" = [ |
| 75 | + "F401", # unused-import |
| 76 | + "F811", # redefined-while-unused |
| 77 | +] |
| 78 | +"configs/*" = [ |
| 79 | + "N802", # invalid-function-name |
| 80 | +] |
| 81 | +"libs/gmpy2_pkcs10aep_cipher.py" = [ |
| 82 | + "N803", # invalid-argument-name |
| 83 | +] |
| 84 | +"tests/*" = [ |
| 85 | + "F811", # redefined-while-unused |
| 86 | + "F401", # unused-import |
| 87 | +] |
| 88 | + |
| 89 | +[lint.pyflakes] |
| 90 | +extend-generics = [ |
| 91 | + "_pytest.monkeypatch", |
| 92 | + "tests.integration_tests", |
| 93 | +] |
0 commit comments