mirror of
https://github.com/python/cpython.git
synced 2024-11-21 12:59:38 +01:00
Bump ruff to 0.2.0 (#114932)
This commit is contained in:
parent
7e2703bbff
commit
920b89f627
@ -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/
|
||||
|
@ -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",
|
||||
@ -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)
|
||||
]
|
||||
|
@ -1,5 +1,7 @@
|
||||
target-version = "py310"
|
||||
fix = true
|
||||
|
||||
[lint]
|
||||
select = [
|
||||
"F", # Enable all pyflakes rules
|
||||
"UP", # Enable all pyupgrade rules by default
|
||||
|
Loading…
Reference in New Issue
Block a user