fix(tools/security-tracker-stats-dashboard): align Python floor to 3.11 - #968
Merged
potiuk merged 2 commits intoJul 27, 2026
Merged
Conversation
Match requires-python, ruff, and mypy to the repo-wide 3.11 floor so type-checking cannot green-light constructs unsupported by the declared runtime. Apply the py311 ruff UP017/B905 fixes that the raised target-version now surfaces. Also re-lock root uv.lock mypy requires-dev specifiers to >=2.3.0 so prek stops rewriting the lock on every README-touching commit (same correction as apache#965). Generated-by: Cursor Grok 4.5 Signed-off-by: shaurya2k06 <shaurya2k06@gmail.com>
justinmclean
approved these changes
Jul 27, 2026
justinmclean
left a comment
Member
There was a problem hiding this comment.
Right alignment: this was the last tool on >=3.9 while root and the other 29 are >=3.11, and nothing in CI pins a Python version.
For anyone wondering why a version bump carries datetime.UTC and zip(..., strict=True): both ruff rules are silent at py39 and fire at py311, so they're what keeps ruff check green once target-version moves. datetime.UTC is the same object as datetime.timezone.utc, a pure rename. strict=True is the real choice, since strict=False would preserve the old truncating behaviour.
potiuk
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requires-python, rufftarget-version, and mypypython_versionintools/security-tracker-stats-dashboardto the repo-wide 3.11 floor (they previously disagreed: 3.9 / py39 / 3.10).uv.lockheader.datetime.UTC/zip(..., strict=True)).uv.lockmypyrequires-devspecifiers to>=2.3.0soprekstops rewriting the lock when this tool's README is touched (same correction as build(deps-dev): re-lock uv.lock against the mypy>=2.3.0 dev pins #965 — drop that hunk if build(deps-dev): re-lock uv.lock against the mypy>=2.3.0 dev pins #965 lands first).Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
prekcommit hooks pass on the changed filesuv run --directory tools/security-tracker-stats-dashboard --group dev pytest— 114 passeduv run --directory tools/security-tracker-stats-dashboard --group dev ruff check/mypy— cleanRFC-AI-0004 compliance
Linked issues
Closes #948
Notes for reviewers (optional)
If #965 merges first, rebase and drop the root
uv.lockhunk — it is only included soprek's vendor-neutrality hook does not fail this branch on README touch.