Skip to content

Commit 87b1ea0

Browse files
authored
Update pre-commit repos (#132792)
1 parent 3b4b56f commit 87b1ea0

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
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: 4 additions & 4 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/
@@ -24,7 +24,7 @@ repos:
2424
files: ^Doc/
2525

2626
- repo: https://github.com/psf/black-pre-commit-mirror
27-
rev: 24.10.0
27+
rev: 25.1.0
2828
hooks:
2929
- id: black
3030
name: Run Black on Tools/build/check_warnings.py
@@ -49,7 +49,7 @@ repos:
4949
types_or: [c, inc, python, rst]
5050

5151
- repo: https://github.com/python-jsonschema/check-jsonschema
52-
rev: 0.31.0
52+
rev: 0.33.0
5353
hooks:
5454
- id: check-dependabot
5555
- id: check-github-workflows
@@ -61,7 +61,7 @@ repos:
6161
- id: actionlint
6262

6363
- repo: https://github.com/woodruffw/zizmor-pre-commit
64-
rev: v1.1.1
64+
rev: v1.6.0
6565
hooks:
6666
- id: zizmor
6767

Tools/jit/_stencils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,19 @@ def remove_jump(self) -> 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,
245245
kind="IMAGE_REL_I386_REL32" | "R_X86_64_PLT32" | "X86_64_RELOC_BRANCH",
246246
value=HoleValue.CONTINUE,
247247
symbol=None,
248248
addend=addend,
249-
) as hole if _signed(addend) == -4:
249+
) as hole if (
250+
_signed(addend) == -4
251+
):
250252
# jmp 5
251-
jump = b"\xE9\x00\x00\x00\x00"
253+
jump = b"\xe9\x00\x00\x00\x00"
252254
offset -= 1
253255
case Hole(
254256
offset=offset,

Tools/jit/_targets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class _Target(typing.Generic[_S, _R]):
4646

4747
def _get_nop(self) -> bytes:
4848
if re.fullmatch(r"aarch64-.*", self.triple):
49-
nop = b"\x1f\x20\x03\xD5"
49+
nop = b"\x1f\x20\x03\xd5"
5050
elif re.fullmatch(r"x86_64-.*|i686.*", self.triple):
5151
nop = b"\x90"
5252
else:

0 commit comments

Comments
 (0)