Repository navigation
Carry sibling-project fixes back into the template - #333
Merged
Merged
Conversation
Suppression check: read reasons written without a dash (for both type: ignore and noqa), recognize ty: ignore-all, and skip venv, env, ENV and any folder holding pyvenv.cfg. Worktree clean-up: read unusual folder names, keep slashes in local base branches, and only call a branch "remote gone" when its upstream is confirmed missing. Makefile: treat a UV_ENV_FILE path containing spaces as one file name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The new pattern misses trailing-comma noqa directives, allowing suppressions to bypass the growth check and making existing baseline entries appear stale.
1 open issue
What changed in this PR
Brings sibling-project fixes into the template’s internal tooling, addressing suppression tracking, worktree cleanup, and environment-file handling from #332.
Changes:
- Expands suppression parsing and excludes virtual environments.
- Improves worktree path handling and cleanup eligibility checks.
- Preserves environment-file paths containing spaces.
| File | Description |
|---|---|
tests/test_worktree_prune.py |
Adds path, base-branch, and upstream regression tests. |
tests/test_suppression_inventory.py |
Tests suppression formats and virtual-environment exclusions. |
scripts/worktree_prune.py |
Updates worktree parsing, base naming, and remote-status checks. |
scripts/check_suppression_inventory.py |
Expands directive parsing and prunes environment directories. |
Makefile |
Escapes spaces when checking environment-file existence. |
Review effort: Balanced
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

Closes #332
Fixes first made in a sibling project, now brought back here:
# type: ignore[assignment] legacy workaroundor# noqa: E501 long urlhas a reason with no dash. Before, the dash-less reason was missed, and fornoqathe reason words were even mistaken for rule names. Now the reason is read correctly. The check also recognizes# ty: ignore-alland# ty: ignore-all[rule], and no longer walks intovenv,env,ENVor any folder containingpyvenv.cfg, so a virtual environment cannot add false findings. The baseline did not change.release/1.0(only a real remote branch likeorigin/mainhas its prefix stripped), and calls a branch "remote gone" only when it was set to track a remote branch that is confirmed missing. An unpushed branch is no longer treated as finished.UV_ENV_FILEpath containing spaces is now treated as one file name, so an existing file is no longer wrongly skipped..github/workflows/continuous-deployment.yaml), so "tag-triggered" is accurate.No CHANGELOG entry: these are internal tooling changes.
🤖 Generated with Claude Code