Autogen opcodes metadata (#7983) · RustPython/RustPython@f95b746 · GitHub
Skip to content

Commit f95b746

Browse files
authored
Autogen opcodes metadata (#7983)
1 parent 1cb24c5 commit f95b746

19 files changed

Lines changed: 2331 additions & 4092 deletions

.gitattributes

Lines changed: 10 additions & 9 deletions

.github/workflows/ci.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ jobs:
519519
security-events: write # for zizmor
520520
steps:
521521
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
522+
with:
523+
persist-credentials: false
522524

523525
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
524526

@@ -544,12 +546,35 @@ jobs:
544546
package-manager-cache: false
545547
node-version: "24"
546548

547-
- name: prek
549+
- name: install prek
548550
id: prek
549551
uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4
550552
with:
551553
cache: false
552554
show-verbose-logs: false
555+
install-only: true
556+
557+
- name: prek run
558+
run: prek run --show-diff-on-failure --color=always --all-files
559+
560+
- name: Get target CPython version
561+
id: cpython-version
562+
run: |
563+
version=$(cat .python-version)
564+
echo "version=${version}" >> "$GITHUB_OUTPUT"
565+
566+
- name: Clone CPython
567+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
568+
with:
569+
repository: python/cpython
570+
path: cpython
571+
ref: "v${{ steps.cpython-version.outputs.version }}"
572+
persist-credentials: false
573+
574+
- name: prek run (manual stage)
575+
run: prek run --show-diff-on-failure --color=always --all-files --hook-stage manual
576+
env:
577+
CPYTHON_ROOT: ${{ github.workspace }}/cpython
553578

554579
- name: save prek cache
555580
if: ${{ github.ref == 'refs/heads/main' }} # only save on main

.pre-commit-config.yaml

Lines changed: 17 additions & 4 deletions

Lib/_opcode_metadata.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)