Skip to content

Add nextflow lint PostToolUse hook#5

Open
edmundmiller wants to merge 1 commit into
masterfrom
claude/nextflow-lint-hook-NM8lc
Open

Add nextflow lint PostToolUse hook#5
edmundmiller wants to merge 1 commit into
masterfrom
claude/nextflow-lint-hook-NM8lc

Conversation

@edmundmiller
Copy link
Copy Markdown
Member

Summary

  • Add a PostToolUse hook (hooks/hooks.json + hooks/scripts/nextflow-lint.sh) that runs nextflow lint on any .nf/.config file the plugin writes or edits.
  • Lint errors are returned to Claude (exit 2) so they get fixed automatically; the hook skips silently when nextflow isn't on PATH.
  • Document the hook in the README.

Test plan

  • Edit a .nf file with invalid syntax and confirm the hook surfaces the lint error
  • Edit a clean .nf/.config file and confirm no spurious output
  • Confirm non-Nextflow files are ignored
  • Confirm the hook is a no-op when Nextflow isn't installed

https://claude.ai/code/session_01BDX5Wh7CXx1hXbfJCyBmMN


Generated by Claude Code

Run `nextflow lint` on .nf/.config files after the plugin writes or
edits them, surfacing errors back so they get fixed. Skips silently when
Nextflow isn't installed.

https://claude.ai/code/session_01BDX5Wh7CXx1hXbfJCyBmMN
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.

2 participants