Skip to content

Commit 3a130c1

Browse files
authored
[3.13] Update pre-commit repos (pythonGH-132792) (python#132804)
(cherry picked from commit 87b1ea0)
1 parent e140e6e commit 3a130c1

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/zizmor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ rules:
44
dangerous-triggers:
55
ignore:
66
- documentation-links.yml
7+
unpinned-uses:
8+
config:
9+
policies:
10+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.11.4
3+
rev: v0.11.6
44
hooks:
55
- id: ruff
66
name: Run Ruff (lint) on Doc/
@@ -20,7 +20,7 @@ repos:
2020
files: ^Doc/
2121

2222
- repo: https://github.com/psf/black-pre-commit-mirror
23-
rev: 24.10.0
23+
rev: 25.1.0
2424
hooks:
2525
- id: black
2626
name: Run Black on Tools/jit/
@@ -41,7 +41,7 @@ repos:
4141
types_or: [c, inc, python, rst]
4242

4343
- repo: https://github.com/woodruffw/zizmor-pre-commit
44-
rev: v1.1.1
44+
rev: v1.6.0
4545
hooks:
4646
- id: zizmor
4747

Tools/jit/_stencils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def remove_jump(self, *, alignment: int = 1) -> None:
238238
addend=-4,
239239
) as hole:
240240
# jmp qword ptr [rip]
241-
jump = b"\x48\xFF\x25\x00\x00\x00\x00"
241+
jump = b"\x48\xff\x25\x00\x00\x00\x00"
242242
offset -= 3
243243
case Hole(
244244
offset=offset,
@@ -248,7 +248,7 @@ def remove_jump(self, *, alignment: int = 1) -> None:
248248
addend=-4,
249249
) as hole:
250250
# jmp 5
251-
jump = b"\xE9\x00\x00\x00\x00"
251+
jump = b"\xe9\x00\x00\x00\x00"
252252
offset -= 1
253253
case Hole(
254254
offset=offset,
@@ -268,7 +268,7 @@ def remove_jump(self, *, alignment: int = 1) -> None:
268268
) as hole:
269269
assert _signed(addend) == -4
270270
# jmp qword ptr [rip]
271-
jump = b"\xFF\x25\x00\x00\x00\x00"
271+
jump = b"\xff\x25\x00\x00\x00\x00"
272272
offset -= 2
273273
case _:
274274
return

0 commit comments

Comments
 (0)