Skip to content

Commit

Permalink
feat(precommit): update configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
  • Loading branch information
nlamirault committed Oct 30, 2024
1 parent 9366b90 commit e53b424
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ repos:
rev: v5.0.0
hooks:
- id: check-merge-conflict
stages: [commit]
stages: [pre-commit]
- id: debug-statements
stages: [commit]
stages: [pre-commit]
- id: check-builtin-literals
stages: [commit]
stages: [pre-commit]
- id: check-added-large-files
stages: [commit]
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [commit]
stages: [pre-commit]
- id: check-toml
stages: [commit]
stages: [pre-commit]
- id: check-xml
stages: [commit]
stages: [pre-commit]
# - id: check-yaml
# args:
# - '--allow-multiple-documents'
Expand All @@ -54,15 +54,15 @@ repos:
# gitops/argocd/charts/core/infra
# gitops/argocd/charts/.*/.*/templates/*.*
- id: check-json
stages: [commit]
stages: [pre-commit]
- id: detect-private-key
stages: [commit]
stages: [pre-commit]
- id: end-of-file-fixer
stages: [commit]
stages: [pre-commit]
- id: mixed-line-ending
stages: [commit]
stages: [pre-commit]
- id: trailing-whitespace
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
Expand All @@ -73,15 +73,15 @@ repos:
rev: v1.5.5
hooks:
- id: insert-license
stages: [commit]
stages: [pre-commit]
files: (Makefile|Gemfile|\.mk|\.yaml|\.yml|\.tf|\.hcl|\.ini|\.rb|\.toml|\.sh)
exclude: ^\.secrets/.*$|^\.git-crypt/.*$
args:
- --license-filepath
- hack/config/LICENSE
# - --remove-header
- id: insert-license
stages: [commit]
stages: [pre-commit]
description: Insert license header into Jinja templates
files: (\.tpl)
exclude: ^\.secrets/.*$|^\.git-crypt/.*$
Expand All @@ -95,16 +95,16 @@ repos:
rev: 3.0.0
hooks:
- id: shellcheck
stages: [commit]
stages: [pre-commit]
exclude: hack/hooks/pre-commit.git-crypt.sh
- id: shfmt
stages: [commit]
stages: [pre-commit]
args: ["-i 4"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
stages: [commit]
stages: [pre-commit]
# exclude:
# ^gitops/(?:templates|files)/.*\.yaml
# - repo: https://github.com/google/yamlfmt
Expand All @@ -117,7 +117,7 @@ repos:
rev: v0.45.0
hooks:
- id: dprint
stages: [commit]
stages: [pre-commit]
# - repo: local
# hooks:
# - id: trufflehog
Expand Down

0 comments on commit e53b424

Please sign in to comment.