diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 12bb8a1..b892ad1 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,7 +4,7 @@ entry: ./git-branch-linearity.sh always_run: true pass_filenames: false - stages: [push] + stages: [pre-push] - id: check-branch-name name: Check branch name @@ -12,26 +12,26 @@ entry: ./branch-naming.sh always_run: true pass_filenames: false - stages: [push] + stages: [pre-push] - id: no-ephemeral-links name: No ephemeral links language: script entry: ./no-ephemeral-links.sh - stages: [commit] + stages: [pre-commit] - id: fastapi-generate-openapi-specification name: Generate Open API specification from a Fast API language: script entry: ./fastapi-generate-openapi-specification.sh - stages: [commit] + stages: [pre-commit] pass_filenames: false - id: gitops-values-validation name: GitOps values JSON schema validation language: python entry: python -m kp_pre_commit_hooks.gitops-values-validation - stages: [commit] + stages: [pre-commit] always_run: true pass_filenames: false additional_dependencies: @@ -48,6 +48,6 @@ name: Check if local Kafka Schemas are up to date with code language: script entry: ./kafka/check-local-schemas.sh - stages: [commit] + stages: [pre-commit] files: ^(schemas/|src/main/scala/[^/]+/models/) pass_filenames: false