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/
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",
"test_yield_from.py",
"time_hashlib.py",
]
+
+[lint]
+select = [
+ "F811", # Redefinition of unused variable (useful for finding test methods with the same name)
+]
target-version = "py310"
fix = true
+
+[lint]
select = [
"F", # Enable all pyflakes rules
"UP", # Enable all pyupgrade rules by default