introducing hk: git hook manager #4434
Replies: 4 comments 7 replies
-
|
Looks cool! I tried installing it using
|
Beta Was this translation helpful? Give feedback.
-
|
I just released hk 0.5.0 which is the first release that I think is ready for people to really start putting through its paces. https://github.com/jdx/hk/releases/tag/v0.5.0 |
Beta Was this translation helpful? Give feedback.
-
|
I appreciate the addition, BUT |
Beta Was this translation helpful? Give feedback.
-
|
I must say it took a bit to get used to pkl but after getting familiar with it, it is really awesome. So easy to share common logic and configuration in a modular way. One thing I was wondering about though is that when using hk with mise, you always need to make sure that the tools required for the linter steps are configured in mise to have them available. Would you see it as an option to include the possibility to in the steps define the configuration for the respective tool for mise, so that mise could pick that up? Another possibility would be if mise would support pkl configuration, so it would be possible to import matching common configuration. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hk is a brand new cli for git-hooks. I could have included this functionality into mise but decided it was unique enough to warrant a new CLI.
hk and mise pair very well together. While other git-hook managers typically will provide nascent functionality around things like dependencies (tools), parallel jobs (tasks), and env vars—these are obviously things mise already does very well. Using mise to install the linters and as a way to run complex tasks means hk itself is rather simple and focused on doing the following (in a pre-commit workflow):
prettier -w(optional)Within each step, you could run a mise task for the advanced workflows tasks provide.
hk is configured with pkl and a basic
hk.pklfor a project looks like this:Beta Was this translation helpful? Give feedback.
All reactions