Skip to content

ci: pin mypy and run the local audit in the pinned version (#4537) - #4538

Merged
squid-protocol merged 1 commit into
mainfrom
ci/pin-mypy
Oct 6, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/pin-mypy

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4537

  • tests/requirements-mypy.txt pins mypy==2.4.0 and PyYAML==6.0.3 (what CI resolves today, so the baseline is unchanged); mypy-audit.yml installs from it.
  • pr_gates.py: when local mypy differs from the pin, the audits gate builds/reuses ~/.cache/gitgalaxy/mypy- (pinned packages + -e worktree) and runs under env -i, printing the mypy version used. Same for ruff (pin from ruff-audit.yml) in the lint gate.
  • Proof: with a local mypy 2.3.0 the gate printed "mypy used: mypy 2.4.0" and passed; with matching mypy it is a no-op.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR

@squid-protocol squid-protocol added ci-cd Continuous integration, delivery, and automated runners priority: high Core feature broken, but workarounds exist testing Unit, integration, and E2E pipeline verification labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 6, 2026 05:32
@squid-protocol
squid-protocol merged commit c8fde81 into main Oct 6, 2026
18 checks passed
@squid-protocol
squid-protocol deleted the ci/pin-mypy branch October 6, 2026 05:32
squid-protocol added a commit that referenced this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd Continuous integration, delivery, and automated runners priority: high Core feature broken, but workarounds exist testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: mypy is installed unpinned, so local audits pass what CI fails (#4500, #4529)

1 participant