Skip to content

Python floor: pin mypy python_version 3.11, fix stale 3.10 comments (Part of #3322) - #6621

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3322-20261025T0935Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3322-20261025T0935Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3322

Checklist: partial [c:e58bc9e1]

Ruff target-version was already py311 and requires-python is >=3.11 (#5364). mypy had no pin, so it followed whichever interpreter ran it. This adds [tool.mypy] python_version = "3.11", corrects three comments that still said 3.10 is supported, and pins all three targets in a test.

Class table

Tool / place State Action
requires-python >=3.11 pinned by new test
ruff target-version py311 pinned by new test
mypy python_version unpinned pinned 3.11, pinned by new test
crucible_pins.toml, _crucible_manifest.py, evidence_report.py:210 comments said 3.10 supported reworded
README / CONTRIBUTING / install docs no 3.9/3.10 mention none needed

Sibling gaps (Remaining slices)

  • Remove the vestigial tomllib fallback (parse_subset) in tests/_crucible_manifest.py. test_crucible_pins pins the two parsers against each other, so it needs its own PR.
  • Other sys.version_info shims and the 3.9/3.10 comments in tests/tools (mainframe_corpus.py:230, refraction_snapshot.py:143, port_invariance.py:128, test_tri_comparison_reconcile.py:144).
  • CHANGELOG breaking-change note.
  • Perf proof (phase_ab.py, 3.9 vs 3.11).

Verification

  • python tests/mypy_audit.py --ci: no new errors (0-error baseline).
  • test_python_floor_targets.py and test_crucible_pins.py: 15 passed, run with plain pytest from /tmp.
  • ruff format --check on the touched files: clean.
  • No parsing logic changed, so the golden masters are untouched.

Lessons for agents

  • The shell had no python on PATH, so the first edit script failed. Use python3, and put /srv/storage_16tb/projects/gitgalaxy/db2-venv/bin on PATH for mypy_audit.
  • ~/.local/bin/ruff is not the pinned version. It reports about 15 pre-existing errors in evidence_report.py and calls PLC0415 noqa unused, so don't trust it for lint.

🤖 Generated with Claude Code

…pin the targets in a test (Part of #3322)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 09:46
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 09:47
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit d0b78cd into main Oct 25, 2026
113 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/3322-20261025T0935Z branch October 25, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant