]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bump ruff to 0.2.0 (#114932)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Fri, 2 Feb 2024 21:04:15 +0000 (21:04 +0000)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2024 21:04:15 +0000 (21:04 +0000)
.pre-commit-config.yaml
Lib/test/.ruff.toml
Tools/clinic/.ruff.toml

index 19033ce243d9d35b62a5d0d9b5a09f91bcc0ae5f..69d85238985150c6508f8e2c1448cc8dc0c83203 100644 (file)
@@ -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/
index d6c1d8745036ece275238879b1efa86e4b8ae675..1c9bac507209b1214efd9d5011f34f3fd542c9b5 100644 (file)
@@ -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)
+]
index cbb3a9a8f3a8c2cfea4ffc655f9d680fe41945b0..c019572d0cb1864bf1b249f92972676976f0ce05 100644 (file)
@@ -1,5 +1,7 @@
 target-version = "py310"
 fix = true
+
+[lint]
 select = [
     "F",  # Enable all pyflakes rules
     "UP",  # Enable all pyupgrade rules by default