Skip to content

Commit

Permalink
Fix: pre-commit default_stages to avoid duplicate hook runs (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Nov 7, 2022
2 parents 3e8e396 + b99ed05 commit 535921a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ ci:
autofix_commit_msg: "chore(pre-commit): autofix run"
autoupdate_commit_msg: "chore(pre-commit): autoupdate hooks"

# by default, install these hook types
# https://pre-commit.com/#top_level-default_install_hook_types
default_install_hook_types:
- pre-commit
- commit-msg

# by default, confine hooks to these git stages (except for hooks that specify their own stages)
# https://pre-commit.com/#top_level-default_stages
default_stages:
- commit

repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
Expand Down

0 comments on commit 535921a

Please sign in to comment.