Skip to content

Carry sibling-project fixes back into the template - #333

Merged
palewire merged 2 commits into
mainfrom
upstream-copilot-fixes
Dec 3, 2026
Merged

palewire merged 2 commits into
mainfrom
upstream-copilot-fixes

Conversation

@palewire

@palewire palewire commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Closes #332

Fixes first made in a sibling project, now brought back here:

  • Suppression check. A comment such as # type: ignore[assignment] legacy workaround or # noqa: E501 long url has a reason with no dash. Before, the dash-less reason was missed, and for noqa the reason words were even mistaken for rule names. Now the reason is read correctly. The check also recognizes # ty: ignore-all and # ty: ignore-all[rule], and no longer walks into venv, env, ENV or any folder containing pyvenv.cfg, so a virtual environment cannot add false findings. The baseline did not change.
  • Worktree clean-up script. It now reads folder names with accented or unusual characters correctly, keeps the slash in a local base branch such as release/1.0 (only a real remote branch like origin/main has 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.
  • Makefile. A UV_ENV_FILE path containing spaces is now treated as one file name, so an existing file is no longer wrongly skipped.
  • Release wording in AGENTS.md. Not changed: here the publish job really does run on a pushed tag (.github/workflows/continuous-deployment.yaml), so "tag-triggered" is accurate.

No CHANGELOG entry: these are internal tooling changes.

🤖 Generated with Claude Code

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread scripts/check_suppression_inventory.py Resolved
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@palewire
palewire merged commit 18bc765 into main Dec 3, 2026
22 checks passed
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.

Fix gaps Copilot found in the suppression check, worktree clean-up and env-file handling

2 participants