]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Bump ruff to 0.2.0 (GH-114932) (#114935)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 2 Feb 2024 22:03:25 +0000 (23:03 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2024 22:03:25 +0000 (22:03 +0000)
Bump ruff to 0.2.0 (GH-114932)
(cherry picked from commit 920b89f62751e64a35fa1bebc03701af6d6f31f2)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
.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 231b0e508f51c1278e8d8c6b34f28c06b567d805..1632900057cd745cb4f602498a7efbdaaa2e4f4c 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",
@@ -32,3 +29,8 @@ extend-exclude = [
     "test_yield_from.py",
     "time_hashlib.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