Visitar URL original
gh-60283: Check for redefined test names in CI by hugovk · Pull Request #109161 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
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
Move autofix setting from pre-commit to Ruff config
  • Loading branch information
hugovk committed Sep 9, 2023
commit cb8237cc40e82df1fb832caf6aaef66752c46b3c
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
rev: v0.0.287
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
args: [--exit-non-zero-on-fix]
Comment thread
AlexWaygood marked this conversation as resolved.
Comment thread
hugovk marked this conversation as resolved.
files: ^Lib/test/

- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
1 change: 1 addition & 0 deletions Lib/test/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fix = true
select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
Comment thread
AlexWaygood marked this conversation as resolved.
]
Expand Down