mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
30 lines
935 B
TOML
30 lines
935 B
TOML
extend = "../../.ruff.toml" # Inherit the project-wide settings
|
|
|
|
target-version = "py312"
|
|
|
|
extend-exclude = [
|
|
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
|
|
"test_clinic.py",
|
|
# Excluded (these aren't actually executed, they're just "data files")
|
|
"tokenizedata/*.py",
|
|
# Non UTF-8 files
|
|
"encoded_modules/module_iso_8859_1.py",
|
|
"encoded_modules/module_koi8_r.py",
|
|
# New grammar constructions may not yet be recognized by Ruff,
|
|
# and tests re-use the same names as only the grammar is being checked.
|
|
"test_grammar.py",
|
|
]
|
|
|
|
[per-file-target-version]
|
|
# Type parameter defaults
|
|
"test_type_params.py" = "py313"
|
|
|
|
# Template string literals
|
|
"test_annotationlib.py" = "py314"
|
|
"test_string/test_templatelib.py" = "py314"
|
|
"test_tstring.py" = "py314"
|
|
|
|
[lint]
|
|
select = [
|
|
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
|
|
]
|