File: .ruff.toml

package info (click to toggle)
python3.14 3.14.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152,200 kB
  • sloc: python: 757,783; ansic: 718,195; xml: 31,250; sh: 5,982; cpp: 4,093; makefile: 2,007; objc: 787; lisp: 502; javascript: 136; asm: 75; csh: 12
file content (22 lines) | stat: -rw-r--r-- 782 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
extend = "../../.ruff.toml"  # Inherit the project-wide settings

# Unlike Tools/, tests can use newer syntax than PYTHON_FOR_REGEN
target-version = "py314"

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",
]

[lint]
select = [
    "F811",  # Redefinition of unused variable (useful for finding test methods with the same name)
]