Skip to content

Commit b596029

Browse files
committed
Add default stages/install hook type to pre-commit
This commit adds default stages and default install hook types to the pre-commit configuration. In addition, it adds the stages in which certain hooks should be run. Signed-off-by: Bryan Cox <[email protected]>
1 parent 1275143 commit b596029

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
1+
default_stages: [pre-commit, pre-push]
2+
default_install_hook_types: [pre-commit, pre-push]
13
repos:
24
- repo: https://github.com/gitleaks/gitleaks
35
rev: v8.21.1
46
hooks:
57
- id: gitleaks
8+
stages: [pre-commit]
69
- repo: https://github.com/koalaman/shellcheck-precommit
710
rev: v0.10.0
811
hooks:
912
- id: shellcheck
1013
args: ["--external-sources"]
14+
stages: [pre-commit]
1115
- repo: https://github.com/pre-commit/pre-commit-hooks
1216
rev: v5.0.0
1317
hooks:
1418
- id: end-of-file-fixer
19+
stages: [pre-commit]
1520
- id: trailing-whitespace
21+
stages: [pre-commit]
1622
- id: detect-private-key
23+
stages: [pre-commit]
1724
- repo: https://github.com/pylint-dev/pylint
1825
rev: v3.3.1
1926
hooks:
2027
- id: pylint
2128
exclude: ^hack/boilerplate/boilerplate.py$
29+
stages: [pre-commit]
2230
- repo: https://github.com/jumanjihouse/pre-commit-hooks
2331
rev: 3.0.0
2432
hooks:
25-
- id: forbid-binary
33+
- id: forbid-binary
34+
stages: [pre-commit]

0 commit comments

Comments
 (0)