@@ -15,9 +15,13 @@ Create a blank configuration file at the root of your repo, if needed:
1515touch .pre-commit-config.yaml
1616```
1717
18- Add a new repo entry to your configuration file:
18+ Add/update ` default_install_hook_types ` and add a new repo entry in your configuration file:
1919
2020``` yaml
21+ default_install_hook_types :
22+ - pre-commit
23+ - commit-msg
24+
2125repos :
2226 # - repo: ...
2327
3236Install the ` pre-commit` script:
3337
3438` ` ` console
35- pre-commit install --hook-type commit-msg
39+ pre-commit install --install-hooks
3640` ` `
3741
3842Make a (normal) commit :x: :
@@ -74,9 +78,7 @@ Conventional Commit messages follow a pattern like:
7478
7579Please correct the following errors:
7680
77- - Expected value for 'type' but found none.
78- - Expected value for 'delim' but found none.
79- - Expected value for 'subject' but found none.
81+ - Expected value for type from: build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
8082
8183Run:
8284
@@ -151,8 +153,8 @@ options:
151153 -h, --help show this help message and exit
152154 --no-color Disable color in output.
153155 --force-scope Force commit to have scope defined.
154- --scopes SCOPES Optional list of scopes to support. Scopes should be separated by commas with no spaces (e.g. api,client)
155- --strict Force commit to strictly follow Conventional Commits formatting. Disallows fixup! style commits.
156+ --scopes SCOPES List of scopes to support. Scopes should be separated by commas with no spaces (e.g. api,client).
157+ --strict Force commit to strictly follow Conventional Commits formatting. Disallows fixup! and merge commits.
156158 --verbose Print more verbose error output.
157159` ` `
158160
0 commit comments