Visitar URL original
gh-132396: address `redefinition of unused name` errors in `Lib/test` by picnixz · Pull Request #132397 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
prune valid files from ruff's exclusion list
  • Loading branch information
picnixz committed Apr 9, 2025
commit d3f0433eacdfb34a71e4ae1307224d64b8a063fc
7 changes: 4 additions & 3 deletions Lib/test/.ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ extend-exclude = [
"test_clinic.py",
# Excluded (these aren't actually executed, they're just "data files")
"tokenizedata/*.py",
# Failed to lint
# Failed to lint (encoding is not UTF-8, but this is deliberate)
Comment thread
picnixz marked this conversation as resolved.
Outdated
"encoded_modules/module_iso_8859_1.py",
"encoded_modules/module_koi8_r.py",
# Excluded (some grammar constructions may not yet be recognized by ruff,
# and tests re-use the same names as only the grammar is being checked)
Comment thread
picnixz marked this conversation as resolved.
Outdated
"test_grammar.py",
# TODO Fix: F811 Redefinition of unused name
Comment thread
picnixz marked this conversation as resolved.
Outdated
"test_buffer.py",
"test_dataclasses/__init__.py",
"test_descr.py",
"test_enum.py",
"test_functools.py",
"test_grammar.py",
"test_import/__init__.py",
"test_pkg.py",
"test_yield_from.py",
Expand Down