File: .ruff.toml

package info (click to toggle)
python3.14 3.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 128,000 kB
  • sloc: python: 752,614; ansic: 717,151; xml: 31,250; sh: 5,989; cpp: 4,063; makefile: 1,996; objc: 787; lisp: 502; javascript: 136; asm: 75; csh: 12
file content (30 lines) | stat: -rw-r--r-- 935 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
]