Skip to content

Commit 034bb70

Browse files
[3.12] Bump ruff to 0.2.0 (GH-114932) (#114935)
Bump ruff to 0.2.0 (GH-114932) (cherry picked from commit 920b89f) Co-authored-by: Alex Waygood <[email protected]>
1 parent 1eb873e commit 034bb70

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.1.7
3+
rev: v0.2.0
44
hooks:
55
- id: ruff
66
name: Run Ruff on Lib/test/

Lib/test/.ruff.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
fix = true
2-
select = [
3-
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
4-
]
52
extend-exclude = [
63
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
74
"test_clinic.py",
@@ -32,3 +29,8 @@ extend-exclude = [
3229
"test_yield_from.py",
3330
"time_hashlib.py",
3431
]
32+
33+
[lint]
34+
select = [
35+
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
36+
]

Tools/clinic/.ruff.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
target-version = "py310"
22
fix = true
3+
4+
[lint]
35
select = [
46
"F", # Enable all pyflakes rules
57
"UP", # Enable all pyupgrade rules by default

0 commit comments

Comments
 (0)