diff options
author | sobolevn <mail@sobolevn.me> | 2025-04-22 18:32:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 18:32:19 +0300 |
commit | 87b1ea016b1454b1e83b9113fa9435849b7743aa (patch) | |
tree | 5cc617194f67c0290e2e222bce0046f5cf382415 | |
parent | 3b4b56f46dbfc0c336a1f70704f127593ec1f4ce (diff) | |
download | cpython-87b1ea016b1454b1e83b9113fa9435849b7743aa.tar.gz cpython-87b1ea016b1454b1e83b9113fa9435849b7743aa.zip |
Update `pre-commit` repos (#132792)
-rw-r--r-- | .github/zizmor.yml | 4 | ||||
-rw-r--r-- | .pre-commit-config.yaml | 8 | ||||
-rw-r--r-- | Tools/jit/_stencils.py | 8 | ||||
-rw-r--r-- | Tools/jit/_targets.py | 2 |
4 files changed, 14 insertions, 8 deletions
diff --git a/.github/zizmor.yml b/.github/zizmor.yml index eeda8d9eaaf..9b42b47cc85 100644 --- a/.github/zizmor.yml +++ b/.github/zizmor.yml @@ -4,3 +4,7 @@ rules: dangerous-triggers: ignore: - documentation-links.yml + unpinned-uses: + config: + policies: + "*": ref-pin diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c77030ca5fc..048cff1d32c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/Tools/jit/_stencils.py b/Tools/jit/_stencils.py index 8faa9e8cac2..22d3014351d 100644 --- a/Tools/jit/_stencils.py +++ b/Tools/jit/_stencils.py @@ -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, diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py index b3b065652e0..f7ea159884c 100644 --- a/Tools/jit/_targets.py +++ b/Tools/jit/_targets.py @@ -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: |