Skip to content

Switch to hk for hooks - #78

Closed
nnutter wants to merge 4 commits into
masterfrom
hk
Closed

nnutter wants to merge 4 commits into
masterfrom
hk

Conversation

@nnutter

@nnutter nnutter commented Oct 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

Users need to know which GitHub account and organizations automatic mise
trust covers before they consent to code execution.
Remove Lefthook-generated hooks before installing hk so existing clones
can migrate safely and repeat the installation.
hk check looks for a check hook, but hk.pkl only defined fix commands
in the pre-commit hook. Add a check hook that reports drift for
gofumpt, goimports, go fix, and go mod tidy without rewriting the
working tree.
Running fixers in CI rewrites files and exits successfully, so it does
not fail when the checkout is unformatted. Use hk check --pr instead so
the check hook reports problems in changed pull request files.
@nnutter nnutter closed this Oct 22, 2026
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.

1 participant