Skip to content

Rename the Carried hub-fetch-run.py Snippet to hub_fetch_run.py - #3219

Merged
ptr727 merged 3 commits into
developfrom
feature/auto-3143
Oct 19, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/auto-3143

Conversation

@ptr727

@ptr727 ptr727 commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Renames the carried hook helper catalog/snippets/hub-fetch-run.py to hub_fetch_run.py, applying the snake_case Python file-name standard from #3140.

Changes

  • Renames the snippet and updates every reference to it: the Husky.Net and pre-commit hook snippets, both VS Code task snippets, the catalog and snippet READMEs, GOVERNANCE.md, STANDUP.md, AUDIT.md, scripts/README.md, docs/pre-commit-hooks-rollout.md, spec/project-types.json, and the tests.
  • Keeps accepting the former name in the python-directories action's CARRIED_HELPERS, the audit's CARRIED_PYTHON_HELPERS, and the parity.hooks statements. A repository that copied the helper before this change still holds hub-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.
  • Keeps the provenance label the helper writes, (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.json has no entry for the helper, and STANDUP.md makes 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.md step 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 --selftest passes, spec/validate.py passes, scripts/build_dist.py --check reports the generated distributions current, ruff, mypy, markdownlint, and the eol checks are clean.
  • Mutation checks: removing the former name from the audit set fails the new selftest case, and removing it from the action's set fails both the uncovered test and the parity test.
  • local-strict-review ran three passes. The first two found a stale parity.hooks statement, 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-length still 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

  • Maintenance
    • Standardized the hook helper’s filename to use underscores across setup instructions, editor tasks, and hook configurations.
    • Updated repository checks to recognize both the current and former filename, preventing either from being reported as an uncovered Python file.

ptr727 and others added 3 commits October 18, 2026 20:30
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]>
Copilot AI lite review requested due to automatic review settings October 19, 2026 03:45
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3fd104b-3e8f-4b6b-ac08-a80e4bbfdfe8
📥 Commits

Reviewing files that changed from the base of the PR and between d557c3d and bbd975c.

📒 Files selected for processing: 20
  • .github/actions/python-directories/python_directories.py
  • AUDIT.md
  • GOVERNANCE.md
  • RESYNC.md
  • STANDUP.md
  • catalog/README.md
  • catalog/snippets/configs/vscode-tasks-python.json
  • catalog/snippets/configs/vscode-tasks.json
  • catalog/snippets/hub_fetch_run.py
  • catalog/snippets/husky/README.md
  • catalog/snippets/husky/pre-commit
  • catalog/snippets/pre-commit/.pre-commit-config.yaml
  • catalog/snippets/pre-commit/README.md
  • docs/pre-commit-hooks-rollout.md
  • scripts/README.md
  • spec/audit.py
  • spec/project-types.json
  • tests/test_cli_usage.py
  • tests/test_hub_fetch_run.py
  • tests/test_python_directories.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The hook runner and its references now use hub_fetch_run.py. Python discovery and hook checks recognize both the new filename and the former hub-fetch-run.py name.

Changes: Hook runner rename and references

Layer / File(s) Summary
Update runner and its integrations
catalog/snippets/hub_fetch_run.py, catalog/snippets/configs/*, catalog/snippets/husky/*, catalog/snippets/pre-commit/*, tests/test_cli_usage.py, tests/test_hub_fetch_run.py, catalog/README.md, docs/pre-commit-hooks-rollout.md, scripts/README.md, GOVERNANCE.md, RESYNC.md, STANDUP.md
Runner usage text and diagnostics now use the underscore filename. Hook and task commands, tests, and setup guidance reference the same filename.
Align Python discovery and hook checks
.github/actions/python-directories/python_directories.py, spec/audit.py, spec/project-types.json, tests/test_python_directories.py, AUDIT.md
Python discovery and directory checks exclude both helper names. Hook parity checks accept either name, and tests cover both forms.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to bbd97

Hook and task references use the renamed helper, and discovery checks continue to recognize repositories using the former name. No concrete behavior issue requiring a merge hold is established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 53.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 6 files. (14 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the primary change: renaming the carried hub-fetch-run.py snippet to hub_fetch_run.py.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 53.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 6 files. (14 skipped: 14 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.14)
catalog/snippets/configs/vscode-tasks-python.json

File contains syntax errors that prevent linting: Line 79: End of file expected; Line 220: End of file expected; Line 4: Expected an array, an object, or a literal but instead found '// Python language group.'.; Line 31: End of file expected; Line 45: End of file expected; Line 46: End of file expected; Line 60: End of file expected; Line 61: End of file expected; Line 74: End of file expected; Line 76: Expected a property but instead found '// The clean-compile aggregator formats in place, then lints, then type-checks, i; Line 75: End of file expected; Line 76: End of file expected; Line 79: End of file expected; Line 79: End of file expected; Line 79: End of file expected; Line 80: End of file expected; Line 80: End of file expected; Line 80: End of file expected; Line 81: End of file expected; Line 81: End of file expected; Line 81: End of file expected; Line 85: End of file expected; Line 86: End of file expected; Line 86: End of file expected; Line 86: End of file expected; Line 86: End of file expected; Line 87: End of file expected; Line 87: End of file expected; Line 87: End of file expected; Line 88: End of file expected; Line 89: End of file expected; Line 103: End of file expected; Line 105: End of file expected; Line 117: End of file expected; Line 118: End of file expected; Line 131: End of file expected; Line 141: End of file expected; Line 151: End of file expected; Line 152: End of file expected; Line 162: End of file expected; Line 163: End of file expected; Line 173: End of file expected; Line 174: End of file expected; Line 184: End of file expected; Line 185: End of file expected; Line 195: End of file expected; Line 196: End of file expected; Line 206: End of file expected; Line 207: End of file expected; Line 80: End of file expected

catalog/snippets/configs/vscode-tasks.json

File contains syntax errors that prevent linting: Line 25: End of file expected; Line 203: End of file expected; Line 216: End of file expected; Line 26: End of file expected; Line 49: End of file expected; Line 50: End of file expected; Line 67: End of file expected; Line 69: End of file expected; Line 85: End of file expected; Line 86: End of file expected; Line 107: End of file expected; Line 108: End of file expected; Line 123: End of file expected; Line 129: End of file expected; Line 139: End of file expected; Line 140: End of file expected; Line 4: Expected an array, an object, or a literal but instead found '// .NET language group.'.; Line 8: End of file expected; Line 150: End of file expected; Line 151: End of file expected; Line 161: End of file expected; Line 162: End of file expected; Line 172: End of file expected; Line 173: End of file expected; Line 187: End of file expected; Line 188: End of file expected; Line 202: End of file expected

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head bbd975ca16f02e096e5c119f7eb00597ab502dbe, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

@ptr727

ptr727 commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.50%. Comparing base (d557c3d) to head (bbd975c).

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     
Flag Coverage Δ
python-3.13 65.50% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit 66b2382 into develop Oct 19, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/auto-3143 branch October 19, 2026 03:59
ptr727 added a commit that referenced this pull request Oct 19, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants