From 48de83557847adac68b6c402bdd11f4c912c8cd2 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 21 Oct 2024 10:19:24 +0200 Subject: [PATCH] Pre-commit: Fix the `jsonnet-lint` hook --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e384bf5253ef..00ad2e8feb5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,12 @@ repos: rev: v0.20.0 hooks: - id: jsonnet-format + # jsonnet-lint hook doesn't work + # We use this as a workaround - id: jsonnet-lint + name: jsonnet-lint + pass_filenames: false + entry: 'find grafazos/src -name "*.jsonnet" -exec jsonnet-lint -J grafazos/vendor/ {} \;' - repo: https://github.com/cisagov/pre-commit-shfmt rev: v0.0.2 hooks: -- GitLab