pre-commit hooks for jsonnet.
Add the following to your .pre-commit-config.yaml
:
repos:
- repo: https://github.com/cybozu/pre-commit-jsonnet
rev: v0.3.0
hooks:
- id: jsonnet-fmt
args: ["--test"] # you can specify any options of jsonnetfmt command
- id: jsonnet-lint
args: [] # you can specify any options of jsonnet-lint command