diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc7b4bc502d..06cf06970a8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -324,12 +324,20 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: clippy + - name: run clippy on wasm run: cargo clippy --manifest-path=crates/wasm/Cargo.toml -- -Dwarnings - name: Ensure docs generate no warnings run: cargo doc + - name: Ensure Lib/_opcode_metadata is updated + run: | + python scripts/generate_opcode_metadata.py + if [ -z "$(git status --porcelain)" ]; then + exit 1 + fi + - name: Install ruff uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1 with: diff --git a/.github/workflows/pr-auto-commit.yaml b/.github/workflows/pr-auto-commit.yaml index 0cbd2bfefb0..203a42a61fe 100644 --- a/.github/workflows/pr-auto-commit.yaml +++ b/.github/workflows/pr-auto-commit.yaml @@ -47,6 +47,7 @@ jobs: - run: ruff format - run: ruff check --select I --fix + - run: python scripts/generate_opcode_metadata.py - name: Configure git run: | diff --git a/Lib/_opcode_metadata.py b/Lib/_opcode_metadata.py index 529f5cbf656..c16c061b881 100644 --- a/Lib/_opcode_metadata.py +++ b/Lib/_opcode_metadata.py @@ -4,6 +4,10 @@ _specializations = {} + + + + _specialized_opmap = {} opmap = {