Skip to content

Commit

Permalink
docs: note about default_install_hook_types
Browse files Browse the repository at this point in the history
simpler install
  • Loading branch information
thekaveman committed Oct 25, 2024
1 parent 20cda61 commit 4f66239
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

Expand All @@ -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::
Expand Down

0 comments on commit 4f66239

Please sign in to comment.