Skip to content

Configuration examples

Choose a starting point, save its downloadable Pkl file as hk.pkl, and adapt the tools and paths to your project. Each page includes the exact file it offers for download.

ExampleTools and concepts
JavaScript and TypeScriptESLint, Prettier, and optional TypeScript checking
PythonRuff linting and formatting, plus optional mypy
MonorepoComponent groups, inherited defaults, and multiple toolchains
Custom stepsCheck/fix commands and self-contained step tests

Install any external tools the example invokes. Then validate and inspect the configuration before installing hooks:

sh
hk validate
hk check --all --plan
hk install

For package environments and editor-launched hooks, see mise integration. For individual properties, see configuration.

MIT LicenseCopyright © 2026jdx.dev