diff --git a/ruff.toml b/ruff.toml index 4c03a80c73..30fa8079ec 100644 --- a/ruff.toml +++ b/ruff.toml @@ -36,9 +36,17 @@ indent-width = 4 target-version = "py312" [lint] -# Currently only enabled for F (Pyflakes), I (isort), E,W (pycodestyle:Error/Warning), PLC/PLE (Pylint:Convention/Error) -# and PERF (Perflint) rules: https://docs.astral.sh/ruff/rules/ -select = ["F", "I", "E", "W", "PLC", "PLE", "PERF"] +# https://docs.astral.sh/ruff/rules/ +select = [ + "ASYNC", # flake8-async - async checks + "E", # pycodestyle - error rules + "F", # pyflakes - general Python errors, undefined names + "I", # isort - import sorting + "PERF", # perflint - performance anti-pattern rules + "PLC", # pylint - convention rules + "PLE", # pylint - error rules + "W", # pycodestyle - warning rules +] ignore = ["F405", "F403", "E501", "E712"] # Allow fix for all enabled rules (when `--fix`) is provided.