forked from python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-60283: Check for redefined test names in CI (python#109161)
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]>
- Loading branch information
1 parent
0e76cc3
commit 3cb9a8e
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
fix = true | ||
select = [ | ||
"F811", # Redefinition of unused variable (useful for finding test methods with the same name) | ||
] | ||
extend-exclude = [ | ||
# 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", | ||
"support/socket_helper.py", | ||
"test_fstring.py", | ||
# TODO Fix: F811 Redefinition of unused name | ||
"test__opcode.py", | ||
"test_buffer.py", | ||
"test_ctypes/test_arrays.py", | ||
"test_ctypes/test_functions.py", | ||
"test_dataclasses/__init__.py", | ||
"test_descr.py", | ||
"test_enum.py", | ||
"test_functools.py", | ||
"test_genericclass.py", | ||
"test_grammar.py", | ||
"test_import/__init__.py", | ||
"test_keywordonlyarg.py", | ||
"test_pkg.py", | ||
"test_subclassinit.py", | ||
"test_typing.py", | ||
"test_unittest/testmock/testpatch.py", | ||
"test_yield_from.py", | ||
"time_hashlib.py", | ||
# Pending https://github.com/python/cpython/pull/109139 | ||
"test_monitoring.py", | ||
] |