Created
December 20, 2025 15:35
-
-
Save cyyynthia/6f31f4edce17807fc5aa7a240d6def01 to your computer and use it in GitHub Desktop.
Mise-powered Git hooks
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
| [settings] | |
| experimental = true | |
| [tools] | |
| typos = "latest" | |
| [hooks] | |
| postinstall = [ | |
| 'printf "#!/usr/bin/env bash\n$(which mise) task run _precommit" > .git/hooks/pre-commit', | |
| "chmod +x .git/hooks/pre-commit", | |
| ] | |
| [tasks._precommit] | |
| hide = true | |
| run = [ | |
| "typos -c .config/typos/config.toml", | |
| ... | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment