Hooks
Pre-commit hooks configured for the dotfiles repository.
Hooks defined in .config/dotfiles/prek.toml and run by prek on every commit.
| Repository | Hooks |
|---|---|
meta | check-hooks-apply, check-useless-excludes |
builtin | Large files, case conflicts, shebangs, JSON/YAML/TOML, merge conflicts, symlinks, whitespace, line ends |
builtin | detect-private-key: blocks files with a private key header (PEM, OpenSSH, PuTTY, PGP) |
typos | Spelling, with automatic fixes |
shfmt | Shell script formatting |
shellcheck | Shell script linting |
tombi | TOML formatting |
ryl | YAML and Markdown linting, with a GitHub-annotated variant on the manual stage |
vale | Documentation prose and commit messages: .config/vale/ styles with .config/dotfiles/.vale.ini rules |
Fixers, such as typos, end-of-file-fixer, and ryl, rewrite files in place.