Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Expand default hooks installed
When developers run `pre-commit install`, pre-commit by default only installed the `pre-commit` hook. The configuration also makes use of the `commit-msg` hook which would remain unused. The developer is required to run `pre-commit install -t commit-msg` (in addition to the default install), which they would only know from inspecting the pre-commit configuration file. By specifying both hooks in `default_install_hook_types`, a simple `pre-commit install` will ensure that _both_ hooks are installed. This should hopefully provide a better developer experience and catch a few lints _before_ they are pushed to a branch and cause CI to fail. Signed-off-by: JP-Ellis <[email protected]>
- Loading branch information