cpython/Lib/test/.ruff.toml
Hugo van Kemenade e28097682e
[3.12] gh-108303: Fix and move badsyntax_pep3120.py (GH-109513) (#130540)
(cherry picked from commit 4dd47c63a9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-02-26 09:46:12 +02:00

36 lines
1.1 KiB
TOML

fix = true
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",
# Failed to lint
"encoded_modules/module_iso_8859_1.py",
"encoded_modules/module_koi8_r.py",
# Failed to parse
"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",
]
[lint]
select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
]