|
| 1 | +target-version = "py310" # should match minimal python version of PowerAPI |
| 2 | + |
| 3 | +[lint] |
| 4 | +select = [ |
| 5 | + "F", # pyflakes |
| 6 | + "E", # pycodestyle errors |
| 7 | + "W", # pycodestyle warnings |
| 8 | + "B", # flake8-bugbear |
| 9 | + "G", # flake8-logging-format |
| 10 | + "PT", # flake8-pytest-style |
| 11 | + "UP", # pyupgrade |
| 12 | + "ERA", # eradicate |
| 13 | + "RUF", # ruff |
| 14 | +] |
| 15 | + |
| 16 | +ignore = [ |
| 17 | + "E501", # line too long |
| 18 | + |
| 19 | + "UP006", # non-pep585-annotation |
| 20 | + "UP007", # non-pep604-annotation-union |
| 21 | + "UP015", # redundant-open-modes |
| 22 | + "UP031", # printf-string-formatting |
| 23 | + "UP035", # deprecated-import |
| 24 | + "B006", # mutable-argument-default |
| 25 | + "B008", # function-call-in-default-argument |
| 26 | + "F401", # unused-import |
| 27 | + "ERA001", # commented-out-code |
| 28 | + "G003", # logging-string-concat |
| 29 | + "G004", # logging-f-string |
| 30 | + "RUF005", # collection-literal-concatenation |
| 31 | + "RUF013", # implicit-optional |
| 32 | + "RUF015", # unnecessary-iterable-allocation-for-first-element |
| 33 | + |
| 34 | + "UP026", # deprecated-mock-import |
| 35 | + "B005", # strip-with-multi-characters |
| 36 | + "B010", # set-attr-with-constant |
| 37 | + "B011", # assert-false |
| 38 | + "B017", # assert-raises-exception |
| 39 | + "B905", # zip-without-explicit-strict |
| 40 | + "E721", # type-comparison |
| 41 | + "PT001", # pytest-fixture-incorrect-parentheses-style |
| 42 | + "PT011", # pytest-raises-too-broad |
| 43 | + "PT012", # pytest-raises-with-multiple-statements |
| 44 | + "PT015", # pytest-assert-always-false |
| 45 | + "PT022", # pytest-useless-yield-fixture |
| 46 | +] |
0 commit comments