| 1 |
extend = "../../.ruff.toml" # Inherit the project-wide settings |
| 2 |
|
| 3 |
extend-exclude = [ |
| 4 |
# Generated files: |
| 5 |
"Tools/peg_generator/pegen/grammar_parser.py", |
| 6 |
] |
| 7 |
|
| 8 |
[lint] |
| 9 |
select = [ |
| 10 |
"F", # pyflakes |
| 11 |
"I", # isort |
| 12 |
"UP", # pyupgrade |
| 13 |
"RUF100", # Ban unused `# noqa` comments |
| 14 |
"PGH004", # Ban blanket `# noqa` comments (only ignore specific error codes) |
| 15 |
] |
| 16 |
unfixable = [ |
| 17 |
# The autofixes sometimes do the wrong things for these; |
| 18 |
# it's better to have to manually look at the code and see how it needs fixing |
| 19 |
"F841", # Detects unused variables |
| 20 |
"F601", # Detects dictionaries that have duplicate keys |
| 21 |
"F602", # Also detects dictionaries that have duplicate keys |
| 22 |
] |