Why is this useful?

Why use pre-commit hooks?

Better commit quality = better code quality

The goal of pre-commit hooks is to improve the quality of commits. This is achieved by making sure your commits meet some (formal) requirements, e.g:

Why use the pre-commit framework?

Using hooks from a framework like pre-commit.com has multiple benefits compared to using simple bash scripts locally in .git/hooks or use boilerplate code in other CI services to perform these tasks:

Have an idea for a hook? Please file an issue.