Skip to content

Require Python 3.11+, test 3.15 - #608

Open
MaxGhenis wants to merge 2 commits into
masterfrom
max/python-311-support-20261113
Open

MaxGhenis wants to merge 2 commits into
masterfrom
max/python-311-support-20261113

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

What changed

  • requires-python goes from >=3.10,<3.15 to >=3.11, dropping the upper cap.
  • Classifiers drop 3.10 and add 3.15.
  • The graph-integration CI matrix adds 3.15 alongside 3.13 and 3.14. The sharded pytest job stays on 3.14.
  • Ruff's target moves from py310 to py311, and black's target list drops py310.
  • CLAUDE.md, CONTRIBUTING.md and docs/population-graph.md now state 3.11 as the minimum.

Why

Python 3.9 reached end of life on 2025-10-31 and 3.10 on 2026-10-01. CPython now supports 3.11 through 3.15.

Ruff

The py311 target makes ruff report 52 UP017 (datetime-timezone-utc) and 46 UP042 (replace-str-enum) findings. The lint job runs ruff check ., so this PR adds both rules to ignore rather than rewriting 98 lines. UP042 also changes str() on the affected enums, so applying it needs its own review.

Verification

  • ruff check . passes locally with ruff 0.17.5 and the new config.
  • The graph-integration job tests 3.15 in this PR's CI. If 3.15 fails there, it comes out of this PR and the cap stays.
  • Black's --check runs in the lint job here; this repo was too large to finish it locally.

🤖 Generated with Claude Code

Python 3.10 reached end of life on 2026-10-01. Raise requires-python to
>=3.11, drop the <3.15 cap, and move the ruff and black targets to py311.
Add 3.15 to the graph-integration matrix and the classifiers.

The py311 ruff target newly flags 52 UP017 and 46 UP042 findings. Ignore
both rules for now so this change stays free of style rewrites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
social-security-model Ready Ready Preview Nov 16, 2026 3:43am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 747a3ca4 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant