| 1 |
extend = "../../.ruff.toml" # Inherit the project-wide settings |
| 2 |
|
| 3 |
# Unlike Tools/, tests can use newer syntax than PYTHON_FOR_REGEN |
| 4 |
target-version = "py314" |
| 5 |
|
| 6 |
extend-exclude = [ |
| 7 |
# Excluded (run with the other AC files in its own separate ruff job in pre-commit) |
| 8 |
"test_clinic.py", |
| 9 |
# Excluded (these aren't actually executed, they're just "data files") |
| 10 |
"tokenizedata/*.py", |
| 11 |
# Non UTF-8 files |
| 12 |
"encoded_modules/module_iso_8859_1.py", |
| 13 |
"encoded_modules/module_koi8_r.py", |
| 14 |
# New grammar constructions may not yet be recognized by Ruff, |
| 15 |
# and tests re-use the same names as only the grammar is being checked. |
| 16 |
"test_grammar.py", |
| 17 |
] |
| 18 |
|
| 19 |
[lint] |
| 20 |
select = [ |
| 21 |
"F811", # Redefinition of unused variable (useful for finding test methods with the same name) |
| 22 |
] |