Skip to content

Drop Python 3.9 and 3.10, and list contributors in releases (deep-review 1.2.2) - #3

Merged
samiashi merged 6 commits into
mainfrom
chore/drop-python-3.9-3.10
Nov 11, 2026
Merged

samiashi merged 6 commits into
mainfrom
chore/drop-python-3.9-3.10

Conversation

@samiashi

Copy link
Copy Markdown
Owner

What changes

Python 3.11 is the floor

Python 3.9 and 3.10 have both reached end of life.

  • CI: the unit tests run on 3.11–3.15, and ruff targets py311.
  • Clear error on an old Python: both plugin scripts exit with a clear message on Python 3.9 or 3.10. macOS's built-in python3 is 3.9, so the message tells you to install a newer one (brew install python).
    • A new CI step runs every plugin script on real 3.9 and 3.10 and requires that message. It's the only check that catches newer syntax, or a 3.11-only import, placed before the guard.
  • Setup and the scheduled pass:
    • /deep-review:setup checks the Python version.
    • /deep-review:auto now notifies you when its scanner fails, instead of stopping without telling you.
  • Repo tooling and tests need 3.11+ too and run through uv, which enforces it. make test now uses uv.
  • AGENTS.md lists every place the floor lives, for the next time a version reaches end of life.

Contributors in every release

The release job now publishes the changelog section followed by a Contributors list: everyone whose commits changed the plugin since its previous release tag.

  • Who's counted:
    • co-authors (Co-authored-by trailers) are included;
    • bots are excluded, by account type and by name;
    • people are told apart by email, so nobody is listed twice or merged with a namesake.
  • How they're shown: @login when GitHub links an account or the email is a GitHub noreply address. Anyone else appears as inert code text, so a git name can't inject a link or mention someone.
  • Robustness:
    • each lookup times out after 20 s and warns on failure;
    • a missing gh no longer aborts;
    • git output is NUL-separated, so no author name can break parsing;
    • shallow clones are refused.
  • Preview: python3 scripts/check_plugins.py release-notes <plugin> <version>.
  • Existing releases: the 1.2.0 and 1.2.1 release notes have already had their Contributors section added.

Release

Merging this publishes deep-review 1.2.2.

Checks

Run locally on the final tree:

  • ruff (check and format)
  • the plugin checks and the release-age check
  • zizmor and actionlint
  • the unit tests on Python 3.11–3.15, plus make test
  • claude plugin validate
  • the old-Python step on real 3.9 and 3.10, including two mutations it must catch (a match statement, and datetime.UTC used above the guard)

Every contributor rule is mutation-tested. Checked live against GitHub: @samiashi resolves, and an unknown commit falls back with a warning.

A pre-PR deep review in fix mode, with Claude and Codex finders, found 15 issues: 11 Low and 4 Nit, none blocking. All are fixed here. Accepted, by design: a person who commits under two emails, only one of them linked to GitHub, is listed twice.

CI now tests 3.11 to 3.15 and ruff targets py311. The plugin scripts exit with a clear message on an older Python, such as macOS's built-in 3.9, and /deep-review:setup checks the version. The docs state the new floor and how to drop a version when it reaches end of life.
The release job now publishes the changelog section followed by a Contributors list: the GitHub users whose commits changed the plugin since its previous release tag, bots excluded. check_plugins.py release-notes previews it. The 1.2.0 and 1.2.1 releases were updated the same way.
A failed commit lookup, for example for a commit GitHub doesn't have yet, crashed release-notes and with it the release. It now falls back to the commit's git author name.
Read git log with NUL and unit-separator fields, so no author name can break parsing. Tell people apart by email and credit Co-authored-by trailers, mapping GitHub noreply emails to logins. Leave out bots by account type as well as name. Show unlinked names as inert code text, so they can't link to or mention anyone. Lookups time out after 20 s and warn on failure, and a missing gh no longer aborts. Refuse shallow clones, and parse the origin strictly, asking for --repo when it can't.
A new lint step runs every plugin script on Python 3.9 and 3.10 and requires the guard's message, which catches newer syntax or imports placed before the guard. A partial ast test catches the same thing early, on the local Python. make test runs through uv. /deep-review:auto notifies the user when its scanner fails. AGENTS.md lists every place the Python floor lives, and the docs describe the contributors list accurately.
@samiashi
samiashi merged commit 7f68a29 into main Nov 11, 2026
12 checks passed
@samiashi
samiashi deleted the chore/drop-python-3.9-3.10 branch November 11, 2026 08:46
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