pre-commit is a popular framework for running Git hooks before commits or pushes. To make a library work with pre-commit, it must provide hooks.
This will make it easier to use this library as a part of most developers' local setups and CI, especially with #8.
Reference