feat: new pre-commit hook to update Nextflow manifest version#193
Merged
kelly-sovacool merged 8 commits intoJun 10, 2026
Conversation
Copilot created this pull request from a session on behalf of
kelly-sovacool
June 10, 2026 17:31
View session
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #193 +/- ##
==========================================
+ Coverage 72.84% 73.47% +0.63%
==========================================
Files 27 28 +1
Lines 1893 1938 +45
==========================================
+ Hits 1379 1424 +45
Misses 514 514 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kelly-sovacool
requested changes
Jun 10, 2026
kelly-sovacool
requested changes
Jun 10, 2026
kelly-sovacool
approved these changes
Jun 10, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new ccbr-hooks sync-nextflow-version pre-commit hook intended to keep a Nextflow repo’s nextflow.config manifest.version synchronized with the repo-root VERSION file, and wires it into the hooks CLI, hook registry, docs, and tests.
Changes:
- Implement
sync-nextflow-versionhook (CLI +update_manifest_version()helper) to updatemanifest.versionfromVERSION. - Register the hook in
ccbr-hooksand.pre-commit-hooks.yaml. - Add/extend tests and update README/CHANGELOG/docs metadata to reference the new hook.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
tests/test_hooks.py |
Adds unit tests for manifest updating and CLI behaviors (update/skip/error/no-op), plus CLI help coverage. |
src/ccbr_tools/hooks/sync_nextflow_version.py |
New hook implementation and helper for updating manifest.version inside nextflow.config. |
src/ccbr_tools/hooks/__main__.py |
Registers sync-nextflow-version with the ccbr-hooks Click command group. |
src/ccbr_tools/hooks/__init__.py |
Updates hooks module docstring to include the new hook. |
README.md |
Updates pre-commit example list to include the new hook. |
CHANGELOG.md |
Adds changelog entry documenting the new hook. |
.pre-commit-hooks.yaml |
Registers the hook for pre-commit, scoped to VERSION/nextflow.config changes. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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.
Changes
ccbr-hooks sync-nextflow-version.pre-commit-hooks.yamlREADME.md,CHANGELOG.md, and hooks module metadataBehavior:
nextflow.configis absentnextflow.configexists but repo-rootVERSIONis missingmanifest.versionlookup errors bubble upmanifest.versioninnextflow.configfromVERSIONValidation:
Issues
see CCBR/CCBR_NextflowTemplate#76
Pull request created by AI Agent