Skip to content

Commit

Permalink
Bump ruff to 0.2.0 (python#114932)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Feb 2, 2024
1 parent 7e2703b commit 920b89f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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

0 comments on commit 920b89f

Please sign in to comment.