From e53b4241757787f282406a6bf2f80631d4d796d0 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Wed, 30 Oct 2024 17:20:51 +0100 Subject: [PATCH] feat(precommit): update configuration Signed-off-by: Nicolas Lamirault --- .pre-commit-config.yaml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ff04bcb350..a620c974a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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' @@ -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: @@ -73,7 +73,7 @@ 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: @@ -81,7 +81,7 @@ repos: - 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/.*$ @@ -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 @@ -117,7 +117,7 @@ repos: rev: v0.45.0 hooks: - id: dprint - stages: [commit] + stages: [pre-commit] # - repo: local # hooks: # - id: trufflehog