Skip to content

Commit

Permalink
[3.11] Bump ruff to 0.2.0 (python#114932)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Feb 4, 2024
1 parent fef6c9b commit bc70352
Show file tree
Hide file tree
Showing 2 changed files with 6 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 (these aren't actually executed, they're just "data files")
"tokenizedata/*.py",
Expand All @@ -22,3 +19,8 @@ extend-exclude = [
"test_yield_from.py",
"time_hashlib.py",
]

[lint]
select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
]

0 comments on commit bc70352

Please sign in to comment.