diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-14 22:38:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 22:38:54 (GMT) |
commit | 36d6ba08d0b143bfa52cbb642dc256d0b6fb040e (patch) | |
tree | dd2648433d7533e80e320bbfc70c50a5d2f5f30c /Lib/test/.ruff.toml | |
parent | 5b38bdeaf1fe51b270b4d45f080854dfbd03a75d (diff) | |
download | cpython-36d6ba08d0b143bfa52cbb642dc256d0b6fb040e.zip cpython-36d6ba08d0b143bfa52cbb642dc256d0b6fb040e.tar.gz cpython-36d6ba08d0b143bfa52cbb642dc256d0b6fb040e.tar.bz2 |
[3.12] gh-60283: Check for redefined test names in CI (GH-109161) (#109365)
* gh-60283: Check for redefined test names in CI (GH-109161)
(cherry picked from commit 3cb9a8edca6e3fa0f0045b03a9a6444cf8f7affe)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Update exclude list for 3.12
* Explicitly exclude files which failed to lint/parse
* Sort to avoid future merge conflicts
---------
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Lib/test/.ruff.toml')
-rw-r--r-- | Lib/test/.ruff.toml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Lib/test/.ruff.toml b/Lib/test/.ruff.toml new file mode 100644 index 0000000..3bdd472 --- /dev/null +++ b/Lib/test/.ruff.toml @@ -0,0 +1,42 @@ +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", + "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_ctypes/test_arrays.py", + "test_ctypes/test_functions.py", + "test_dataclasses.py", + "test_descr.py", + "test_enum.py", + "test_functools.py", + "test_genericclass.py", + "test_grammar.py", + "test_import/__init__.py", + "test_keywordonlyarg.py", + "test_lib2to3/data/py3_test_grammar.py", + "test_pkg.py", + "test_subclassinit.py", + "test_tokenize.py", + "test_typing.py", + "test_yield_from.py", + "time_hashlib.py", + # Pending https://github.com/python/cpython/pull/109139 + "test_monitoring.py", +] |