Skip to content

Commit 920b89f

Browse files
authored
Bump ruff to 0.2.0 (#114932)
1 parent 7e2703b commit 920b89f

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",
@@ -21,3 +18,8 @@ extend-exclude = [
2118
"test_pkg.py",
2219
"test_yield_from.py",
2320
]
21+
22+
[lint]
23+
select = [
24+
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
25+
]

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)