diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e384bf5253ef182ee0fa4e245e985c5a37763c92..00ad2e8feb5fc22aa6dd33ac534910d6ef548161 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: