Skip to content

fix: mypy-weaklist-stale-on-delete#115213

Merged
joshuarli merged 1 commit into
masterfrom
fix/mypy-weaklist-stale-on-delete
May 8, 2026
Merged

fix: mypy-weaklist-stale-on-delete#115213
joshuarli merged 1 commit into
masterfrom
fix/mypy-weaklist-stale-on-delete

Conversation

@joshuarli
Copy link
Copy Markdown
Member

addresses the issue in #115204


The check-mypy-weaklist pre-commit hook only fired when pyproject.toml changed, so deleting a Python file without cleaning up its weaklist entry would slip through locally and break the test_stronglist CI check. Extended the hook to also trigger on .py file changes so the validation runs whenever a file deletion could produce a stale entry.

pyproject.toml changed, so deleting a Python file without cleaning up its
weaklist entry would slip through locally and break the test_stronglist CI
check. Extended the hook to also trigger on .py file changes so the
validation runs whenever a file deletion could produce a stale entry.
@joshuarli joshuarli requested review from a team as code owners May 8, 2026 19:05
@joshuarli joshuarli requested a review from NicoHinderling May 8, 2026 19:05
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 8, 2026
@joshuarli joshuarli merged commit 5d888d8 into master May 8, 2026
56 checks passed
@joshuarli joshuarli deleted the fix/mypy-weaklist-stale-on-delete branch May 8, 2026 19:19
nikkikapadia pushed a commit that referenced this pull request May 12, 2026
addresses the issue in #115204

---

The check-mypy-weaklist pre-commit hook only fired when pyproject.toml
changed, so deleting a Python file without cleaning up its weaklist
entry would slip through locally and break the test_stronglist CI check.
Extended the hook to also trigger on .py file changes so the validation
runs whenever a file deletion could produce a stale entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants