]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update `pre-commit` repos (#132792)
authorsobolevn <mail@sobolevn.me>
Tue, 22 Apr 2025 15:32:19 +0000 (18:32 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 15:32:19 +0000 (18:32 +0300)
.github/zizmor.yml
.pre-commit-config.yaml
Tools/jit/_stencils.py
Tools/jit/_targets.py

index eeda8d9eaaf4843215134a3fd731cfbb75749c05..9b42b47cc8554560bdab79548dc21a5fea231b43 100644 (file)
@@ -4,3 +4,7 @@ rules:
   dangerous-triggers:
     ignore:
       - documentation-links.yml
+  unpinned-uses:
+    config:
+      policies:
+        "*": ref-pin
index c77030ca5fc658cc4679f9e076ac16de41a67b8a..048cff1d32c7af15e5d420f7912ac623f25a5628 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/
@@ -24,7 +24,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/build/check_warnings.py
@@ -49,7 +49,7 @@ repos:
         types_or: [c, inc, python, rst]
 
   - repo: https://github.com/python-jsonschema/check-jsonschema
-    rev: 0.31.0
+    rev: 0.33.0
     hooks:
       - id: check-dependabot
       - id: check-github-workflows
@@ -61,7 +61,7 @@ repos:
       - id: actionlint
 
   - repo: https://github.com/woodruffw/zizmor-pre-commit
-    rev: v1.1.1
+    rev: v1.6.0
     hooks:
       - id: zizmor
 
index 8faa9e8cac2d855b3048cdb1bfdc76fd4bbf0e30..22d3014351df90b94844367569e2150cd5c8b0c3 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,
@@ -246,9 +246,11 @@ class Stencil:
                 value=HoleValue.CONTINUE,
                 symbol=None,
                 addend=addend,
-            ) as hole if _signed(addend) == -4:
+            ) as hole if (
+                _signed(addend) == -4
+            ):
                 # jmp 5
-                jump = b"\xE9\x00\x00\x00\x00"
+                jump = b"\xe9\x00\x00\x00\x00"
                 offset -= 1
             case Hole(
                 offset=offset,
index b3b065652e0bb0d6905319fa8f81e9b4a4a79344..f7ea159884c5a493bcb81aa85f3bb8016e2bf580 100644 (file)
@@ -46,7 +46,7 @@ class _Target(typing.Generic[_S, _R]):
 
     def _get_nop(self) -> bytes:
         if re.fullmatch(r"aarch64-.*", self.triple):
-            nop = b"\x1f\x20\x03\xD5"
+            nop = b"\x1f\x20\x03\xd5"
         elif re.fullmatch(r"x86_64-.*|i686.*", self.triple):
             nop = b"\x90"
         else: