Repository navigation
Rename the Carried hub-fetch-run.py Snippet to hub_fetch_run.py - #3219
Conversation
Apply the fleet's snake_case Python file-name standard to the carried hook helper, updating the hook snippets, VS Code task snippets, carry docs, spec, and tests that name it. The python-directories action and the audit still accept the former name, since a repo that copied the helper before this change keeps it until its next resync, and dropping it would flag that repo's helper as its own Python. RESYNC.md now states that resync renames the helper in place rather than copying the new snippet beside it, since nothing mechanical carries it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… Label Accept a hook still calling hub-fetch-run.py in the parity.hooks statement, as the classification sets already do, and keep the provenance label the helper stamps unchanged so carriers on either name emit the same shape. Split the new RESYNC.md sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The python-directories action and the audit each keep their own set of helper names to exempt, so assert they match. Move the former-name clause out of the long parity.hooks sentence in AUDIT.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟢 Approval recommended
The changes were fully reviewed with no unresolved blocking issues.
No open issues 🎉
What changed in this PR
Renames the carried hook helper to hub_fetch_run.py while preserving compatibility for existing downstream copies.
Changes:
- Updates hooks, VS Code tasks, documentation, specifications, and tests.
- Preserves legacy filename exemptions and provenance labels.
- Adds parity coverage for Python-directory and audit exemptions.
| File | Description |
|---|---|
tests/test_python_directories.py |
Tests both helper names and exemption parity. |
tests/test_hub_fetch_run.py |
Uses the renamed snippet. |
tests/test_cli_usage.py |
Updates discovery references. |
STANDUP.md |
Updates setup instructions. |
spec/project-types.json |
Updates discovery and hook contracts. |
spec/audit.py |
Preserves legacy-name exemptions. |
scripts/README.md |
Updates provenance documentation. |
RESYNC.md |
Documents in-place migration. |
GOVERNANCE.md |
Updates hook guidance. |
docs/pre-commit-hooks-rollout.md |
Updates rollout instructions. |
catalog/snippets/pre-commit/README.md |
Updates helper references. |
catalog/snippets/pre-commit/.pre-commit-config.yaml |
Updates hook commands. |
catalog/snippets/husky/README.md |
Updates Husky documentation. |
catalog/snippets/husky/pre-commit |
Uses the renamed helper. |
catalog/snippets/hub_fetch_run.py |
Renamed canonical helper. |
catalog/snippets/configs/vscode-tasks.json |
Updates task paths. |
catalog/snippets/configs/vscode-tasks-python.json |
Updates Python task paths. |
catalog/README.md |
Updates catalog references. |
AUDIT.md |
Updates audit guidance. |
.github/actions/python-directories/python_directories.py |
Preserves both helper exemptions. |
Review effort: Lite
|
@coderabbitai review |
✅ Action performedReview finished.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3219 +/- ##
===========================================
- Coverage 65.52% 65.50% -0.03%
===========================================
Files 17 17
Lines 9767 9767
===========================================
- Hits 6400 6398 -2
- Misses 3367 3369 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…in (#3222) - #3221 makes `pr_review.py` print a clean-verdict Copilot round's headline under `CLEAN VERDICT HEADLINE` when the round counts no finding, opens no thread, and collapses no block. The line is advisory and changes no exit code. It shares one guard with the flagging reading behind exit `50`, through a verdict-set parameter on `uncounted_verdict`. This implements the maintainer's "print it, do not gate" decision on #2567. - #3219 renames the carried hook helper `catalog/snippets/hub-fetch-run.py` to `hub_fetch_run.py`. It updates every reference and keeps accepting the former name wherever a carrier that copied it earlier would otherwise misclassify. #3221 edits `pr-review-conduct`, so this machine's installed Skills change at release. Closes #2567 Closes #3143 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Renames the carried hook helper
catalog/snippets/hub-fetch-run.pytohub_fetch_run.py, applying the snake_case Python file-name standard from #3140.Changes
GOVERNANCE.md,STANDUP.md,AUDIT.md,scripts/README.md,docs/pre-commit-hooks-rollout.md,spec/project-types.json, and the tests.CARRIED_HELPERS, the audit'sCARRIED_PYTHON_HELPERS, and theparity.hooksstatements. A repository that copied the helper before this change still holdshub-fetch-run.py, and without this the action would warn that its helper is uncovered Python and the audit would classify the repository as Python. A new test asserts the two sets match.(hub-fetch-run main)and(hub-fetch-run, commit unresolved), so carriers using either file name produce the same scope line.Does a resync leave both files?
Without a new instruction, it would.
spec/files.jsonhas no entry for the helper, andSTANDUP.mdmakes the hook files repository-owned and copied by hand, so no resync step moves or deletes the helper. A carrier that copied the new snippet would end up with both names.RESYNC.mdstep 6 now says to rename the helper in place and update its calls in the same commit. #3141's file-naming check will report any carrier that still holds the hyphenated name, and the exemption sets above cover only Python-type discovery, so they do not hide it from that check.Verification
python3 -m unittest discover -s tests: 2973 tests OK.spec/audit.py --selftestpasses,spec/validate.pypasses,scripts/build_dist.py --checkreports the generated distributions current, ruff, mypy, markdownlint, and the eol checks are clean.local-strict-reviewran three passes. The first two found a staleparity.hooksstatement, the provenance label, a duplicated set with no test, and two long sentences, all fixed in the later commits. The third pass found nothing. The opt-in--check sentence-lengthstill flags 23 long sentences on lines this change touched, but each one only had a path swapped for one of the same word count, so they were already there.Closes on promotion: #3143
🤖 Generated with Claude Code
Summary by CodeRabbit