Skip to content

Commit e53b424

Browse files
committed
feat(precommit): update configuration
Signed-off-by: Nicolas Lamirault <[email protected]>
1 parent 9366b90 commit e53b424

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ repos:
3333
rev: v5.0.0
3434
hooks:
3535
- id: check-merge-conflict
36-
stages: [commit]
36+
stages: [pre-commit]
3737
- id: debug-statements
38-
stages: [commit]
38+
stages: [pre-commit]
3939
- id: check-builtin-literals
40-
stages: [commit]
40+
stages: [pre-commit]
4141
- id: check-added-large-files
42-
stages: [commit]
42+
stages: [pre-commit]
4343
- id: check-executables-have-shebangs
44-
stages: [commit]
44+
stages: [pre-commit]
4545
- id: check-toml
46-
stages: [commit]
46+
stages: [pre-commit]
4747
- id: check-xml
48-
stages: [commit]
48+
stages: [pre-commit]
4949
# - id: check-yaml
5050
# args:
5151
# - '--allow-multiple-documents'
@@ -54,15 +54,15 @@ repos:
5454
# gitops/argocd/charts/core/infra
5555
# gitops/argocd/charts/.*/.*/templates/*.*
5656
- id: check-json
57-
stages: [commit]
57+
stages: [pre-commit]
5858
- id: detect-private-key
59-
stages: [commit]
59+
stages: [pre-commit]
6060
- id: end-of-file-fixer
61-
stages: [commit]
61+
stages: [pre-commit]
6262
- id: mixed-line-ending
63-
stages: [commit]
63+
stages: [pre-commit]
6464
- id: trailing-whitespace
65-
stages: [commit]
65+
stages: [pre-commit]
6666
- repo: https://github.com/compilerla/conventional-pre-commit
6767
rev: v3.6.0
6868
hooks:
@@ -73,15 +73,15 @@ repos:
7373
rev: v1.5.5
7474
hooks:
7575
- id: insert-license
76-
stages: [commit]
76+
stages: [pre-commit]
7777
files: (Makefile|Gemfile|\.mk|\.yaml|\.yml|\.tf|\.hcl|\.ini|\.rb|\.toml|\.sh)
7878
exclude: ^\.secrets/.*$|^\.git-crypt/.*$
7979
args:
8080
- --license-filepath
8181
- hack/config/LICENSE
8282
# - --remove-header
8383
- id: insert-license
84-
stages: [commit]
84+
stages: [pre-commit]
8585
description: Insert license header into Jinja templates
8686
files: (\.tpl)
8787
exclude: ^\.secrets/.*$|^\.git-crypt/.*$
@@ -95,16 +95,16 @@ repos:
9595
rev: 3.0.0
9696
hooks:
9797
- id: shellcheck
98-
stages: [commit]
98+
stages: [pre-commit]
9999
exclude: hack/hooks/pre-commit.git-crypt.sh
100100
- id: shfmt
101-
stages: [commit]
101+
stages: [pre-commit]
102102
args: ["-i 4"]
103103
- repo: https://github.com/adrienverge/yamllint.git
104104
rev: v1.35.1
105105
hooks:
106106
- id: yamllint
107-
stages: [commit]
107+
stages: [pre-commit]
108108
# exclude:
109109
# ^gitops/(?:templates|files)/.*\.yaml
110110
# - repo: https://github.com/google/yamlfmt
@@ -117,7 +117,7 @@ repos:
117117
rev: v0.45.0
118118
hooks:
119119
- id: dprint
120-
stages: [commit]
120+
stages: [pre-commit]
121121
# - repo: local
122122
# hooks:
123123
# - id: trufflehog

0 commit comments

Comments
 (0)