]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Update `pre-commit` repos (GH-132792) (#132804)
authorsobolevn <mail@sobolevn.me>
Tue, 22 Apr 2025 15:57:34 +0000 (18:57 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 15:57:34 +0000 (15:57 +0000)
(cherry picked from commit 87b1ea016b1454b1e83b9113fa9435849b7743aa)

.github/zizmor.yml
.pre-commit-config.yaml
Tools/jit/_stencils.py

index eeda8d9eaaf4843215134a3fd731cfbb75749c05..9b42b47cc8554560bdab79548dc21a5fea231b43 100644 (file)
@@ -4,3 +4,7 @@ rules:
   dangerous-triggers:
     ignore:
       - documentation-links.yml
+  unpinned-uses:
+    config:
+      policies:
+        "*": ref-pin
index cecab7e03e27a6300ce81c99dc5718ffcff40593..66b8aa14b9283a618b207b5018b88b54f7fe789d 100644 (file)
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.11.4
+    rev: v0.11.6
     hooks:
       - id: ruff
         name: Run Ruff (lint) on Doc/
@@ -20,7 +20,7 @@ repos:
         files: ^Doc/
 
   - repo: https://github.com/psf/black-pre-commit-mirror
-    rev: 24.10.0
+    rev: 25.1.0
     hooks:
       - id: black
         name: Run Black on Tools/jit/
@@ -41,7 +41,7 @@ repos:
         types_or: [c, inc, python, rst]
 
   - repo: https://github.com/woodruffw/zizmor-pre-commit
-    rev: v1.1.1
+    rev: v1.6.0
     hooks:
       - id: zizmor
 
index 6e046df3026ae9184dcda276cb2da409eb2f8aed..d47b403f0d846cfe14870d920cc8ece963652c3d 100644 (file)
@@ -238,7 +238,7 @@ class Stencil:
                 addend=-4,
             ) as hole:
                 # jmp qword ptr [rip]
-                jump = b"\x48\xFF\x25\x00\x00\x00\x00"
+                jump = b"\x48\xff\x25\x00\x00\x00\x00"
                 offset -= 3
             case Hole(
                 offset=offset,
@@ -248,7 +248,7 @@ class Stencil:
                 addend=-4,
             ) as hole:
                 # jmp 5
-                jump = b"\xE9\x00\x00\x00\x00"
+                jump = b"\xe9\x00\x00\x00\x00"
                 offset -= 1
             case Hole(
                 offset=offset,
@@ -268,7 +268,7 @@ class Stencil:
             ) as hole:
                 assert _signed(addend) == -4
                 # jmp qword ptr [rip]
-                jump = b"\xFF\x25\x00\x00\x00\x00"
+                jump = b"\xff\x25\x00\x00\x00\x00"
                 offset -= 2
             case _:
                 return