|
| 1 | +[tool.ruff] |
| 2 | +exclude = [ |
| 3 | + "python-stdlib", |
| 4 | + "unix-ffi", |
| 5 | +] |
| 6 | +select = [ |
| 7 | + "C4", # flake8-comprehensions |
| 8 | + "C90", # McCabe cyclomatic complexity |
| 9 | + "DTZ", # flake8-datetimez |
| 10 | + "E", # pycodestyle |
| 11 | + "EXE", # flake8-executable |
| 12 | + "F", # Pyflakes |
| 13 | + "G", # flake8-logging-format |
| 14 | + "ICN", # flake8-import-conventions |
| 15 | + "INT", # flake8-gettext |
| 16 | + "ISC", # flake8-implicit-str-concat |
| 17 | + "PGH", # pygrep-hooks |
| 18 | + "PIE", # flake8-pie |
| 19 | + "PL", # Pylint |
| 20 | + "PYI", # flake8-pyi |
| 21 | + "RSE", # flake8-raise |
| 22 | + "RUF", # Ruff-specific rules |
| 23 | + "T10", # flake8-debugger |
| 24 | + "TCH", # flake8-type-checking |
| 25 | + "W", # pycodestyle |
| 26 | + "YTT", # flake8-2020 |
| 27 | + # "A", # flake8-builtins |
| 28 | + # "ANN", # flake8-annotations |
| 29 | + # "ARG", # flake8-unused-arguments |
| 30 | + # "B", # flake8-bugbear |
| 31 | + # "BLE", # flake8-blind-except |
| 32 | + # "COM", # flake8-commas |
| 33 | + # "D", # pydocstyle |
| 34 | + # "DJ", # flake8-django |
| 35 | + # "EM", # flake8-errmsg |
| 36 | + # "ERA", # eradicate |
| 37 | + # "FBT", # flake8-boolean-trap |
| 38 | + # "I", # isort |
| 39 | + # "INP", # flake8-no-pep420 |
| 40 | + # "N", # pep8-naming |
| 41 | + # "NPY", # NumPy-specific rules |
| 42 | + # "PD", # pandas-vet |
| 43 | + # "PT", # flake8-pytest-style |
| 44 | + # "PTH", # flake8-use-pathlib |
| 45 | + # "Q", # flake8-quotes |
| 46 | + # "RET", # flake8-return |
| 47 | + # "S", # flake8-bandit |
| 48 | + # "SIM", # flake8-simplify |
| 49 | + # "SLF", # flake8-self |
| 50 | + # "T20", # flake8-print |
| 51 | + # "TID", # flake8-tidy-imports |
| 52 | + # "TRY", # tryceratops |
| 53 | + # "UP", # pyupgrade |
| 54 | +] |
| 55 | +ignore = [ |
| 56 | + "E401", |
| 57 | + "E402", |
| 58 | + "E722", |
| 59 | + "E741", |
| 60 | + "F401", |
| 61 | + "F403", |
| 62 | + "F405", |
| 63 | + "F541", |
| 64 | + "F821", |
| 65 | + "F841", |
| 66 | + "PLC1901", |
| 67 | + "PLR1701", |
| 68 | + "PLR5501", |
| 69 | + "PLW0602", |
| 70 | + "PLW0603", |
| 71 | + "PLW2901", |
| 72 | +] |
| 73 | +line-length = 260 |
| 74 | +target-version = "py37" |
| 75 | + |
| 76 | +[tool.ruff.mccabe] |
| 77 | +max-complexity = 61 |
| 78 | + |
| 79 | +[tool.ruff.pylint] |
| 80 | +allow-magic-value-types = ["bytes", "int", "str"] |
| 81 | +max-args = 14 |
| 82 | +max-branches = 58 |
| 83 | +max-returns = 13 |
| 84 | +max-statements = 166 |
| 85 | + |
| 86 | +[tool.ruff.per-file-ignores] |
| 87 | +"micropython/aiorepl/aiorepl.py" = ["PGH001"] |
0 commit comments