summaryrefslogtreecommitdiffstats
path: root/Lib/test/.ruff.toml
blob: 231b0e508f51c1278e8d8c6b34f28c06b567d805 (plain)
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
31
32
33
34
fix = true
select = [
    "F811",  # Redefinition of unused variable (useful for finding test methods with the same name)
]
extend-exclude = [
    # Excluded (run with the other AC files in its own separate ruff job in pre-commit)
    "test_clinic.py",
    # Failed to lint
    "badsyntax_pep3120.py",
    "encoded_modules/module_iso_8859_1.py",
    "encoded_modules/module_koi8_r.py",
    # Failed to parse
    "badsyntax_3131.py",
    "test_lib2to3/data/bom.py",
    "test_lib2to3/data/crlf.py",
    "test_lib2to3/data/different_encoding.py",
    "test_lib2to3/data/false_encoding.py",
    "test_lib2to3/data/py2_test_grammar.py",
    # TODO Fix: F811 Redefinition of unused name
    "test_buffer.py",
    "test_capi/test_misc.py",
    "test_capi/test_unicode.py",
    "test_dataclasses/__init__.py",
    "test_descr.py",
    "test_enum.py",
    "test_functools.py",
    "test_grammar.py",
    "test_import/__init__.py",
    "test_lib2to3/data/py3_test_grammar.py",
    "test_pkg.py",
    "test_tokenize.py",
    "test_yield_from.py",
    "time_hashlib.py",
]