]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Bump ruff to 0.2.0 (#114932) (#115008)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sun, 4 Feb 2024 20:00:05 +0000 (20:00 +0000)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 20:00:05 +0000 (20:00 +0000)
.pre-commit-config.yaml
Lib/test/.ruff.toml

index ecf5d93f9b2be6b804aaacc54d03e61132e28428..ad9593cc38a74f07b8fb894e5fcbd4af5633a31f 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 89e33b2d63c8f61f636b703e77eacc143136261a..233ee0233c31fef3c54efd559185bbb634f82140 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 (these aren't actually executed, they're just "data files")
     "tokenizedata/*.py",
@@ -22,3 +19,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)
+]