From 4f662397f935722a507a584d0a7edd33bf08340a Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Mon, 21 Oct 2024 21:23:44 +0000 Subject: [PATCH] docs: note about default_install_hook_types simpler install --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index beeb770..d80572b 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,13 @@ Create a blank configuration file at the root of your repo, if needed: touch .pre-commit-config.yaml ``` -Add a new repo entry to your configuration file: +Add/update `default_install_hook_types` and add a new repo entry in your configuration file: ```yaml +default_install_hook_types: + - pre-commit + - commit-msg + repos: # - repo: ... @@ -32,7 +36,7 @@ repos: Install the `pre-commit` script: ```console -pre-commit install --hook-type commit-msg +pre-commit install --install-hooks ``` Make a (normal) commit :x::