Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
rev: v0.2.0
hooks:
- id: ruff
name: Run Ruff on Lib/test/
Expand Down
8 changes: 5 additions & 3 deletions Lib/test/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
fix = true
select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
]
extend-exclude = [
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
"test_clinic.py",
Expand All @@ -21,3 +18,8 @@ extend-exclude = [
"test_pkg.py",
"test_yield_from.py",
]

[lint]
select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
]
2 changes: 2 additions & 0 deletions Tools/clinic/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
target-version = "py310"
fix = true

[lint]
select = [
"F", # Enable all pyflakes rules
"UP", # Enable all pyupgrade rules by default
Expand Down