mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] Bump ruff to 0.2.0 (GH-114932) (#114935)
Bump ruff to 0.2.0 (GH-114932)
(cherry picked from commit 920b89f627
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
1eb873ef45
commit
034bb70aaa
3 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.1.7
|
rev: v0.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
name: Run Ruff on Lib/test/
|
name: Run Ruff on Lib/test/
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
fix = true
|
fix = true
|
||||||
select = [
|
|
||||||
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
|
|
||||||
]
|
|
||||||
extend-exclude = [
|
extend-exclude = [
|
||||||
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
|
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
|
||||||
"test_clinic.py",
|
"test_clinic.py",
|
||||||
|
@ -32,3 +29,8 @@ extend-exclude = [
|
||||||
"test_yield_from.py",
|
"test_yield_from.py",
|
||||||
"time_hashlib.py",
|
"time_hashlib.py",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[lint]
|
||||||
|
select = [
|
||||||
|
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
|
||||||
|
]
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
fix = true
|
fix = true
|
||||||
|
|
||||||
|
[lint]
|
||||||
select = [
|
select = [
|
||||||
"F", # Enable all pyflakes rules
|
"F", # Enable all pyflakes rules
|
||||||
"UP", # Enable all pyupgrade rules by default
|
"UP", # Enable all pyupgrade rules by default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue