Debian Codegraph @

Lib/test/.ruff.toml

raw
1 extend = "../../.ruff.toml" # Inherit the project-wide settings
2
3 target-version = "py312"
4
5 extend-exclude = [
6 # Excluded (run with the other AC files in its own separate ruff job in pre-commit)
7 "test_clinic.py",
8 # Excluded (these aren't actually executed, they're just "data files")
9 "tokenizedata/*.py",
10 # Non UTF-8 files
11 "encoded_modules/module_iso_8859_1.py",
12 "encoded_modules/module_koi8_r.py",
13 # New grammar constructions may not yet be recognized by Ruff,
14 # and tests re-use the same names as only the grammar is being checked.
15 "test_grammar.py",
16 ]
17
18 [per-file-target-version]
19 # Type parameter defaults
20 "test_type_params.py" = "py313"
21
22 # Template string literals
23 "test_annotationlib.py" = "py314"
24 "test_string/test_templatelib.py" = "py314"
25 "test_tstring.py" = "py314"
26
27 [lint]
28 select = [
29 "F811", # Redefinition of unused variable (useful for finding test methods with the same name)
30 ]