Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-60283: Check for redefined test names in CI#109161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
4cd4803a37828c0dcdd08d14c002cb8237c1bdae7283904af8fd293a66e11729b1b43a3839aea0bf3e3e932f2c108899596ba396dd9dff8dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,17 @@ | ||
| repos: | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.0.288 | ||
| hooks: | ||
| - id: ruff | ||
| name: Run Ruff on Lib/test/ | ||
| args: [--exit-non-zero-on-fix] | ||
AlexWaygood marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. hugovk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| files: ^Lib/test/ | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.4.0 | ||
| hooks: | ||
| - id: check-toml | ||
| exclude: ^Lib/test/test_tomllib/ | ||
| - id: check-yaml | ||
| - id: end-of-file-fixer | ||
| types: [python] | ||
| 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) | ||
AlexWaygood marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ] | ||
| 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", | ||
| ] | ||
Uh oh!
There was an error while loading. Please reload this page.