Skip to content

cybozu/pre-commit-jsonnet

Repository files navigation

pre-commit-jsonnet

lint and tests

pre-commit hooks for jsonnet.

Usage

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