https://github.com/cybozu/pre-commit-jsonnet
pre-commit hooks for jsonnet
https://github.com/cybozu/pre-commit-jsonnet
jsonnet pre-commit-hooks
Last synced: about 1 month ago
JSON representation
pre-commit hooks for jsonnet
- Host: GitHub
- URL: https://github.com/cybozu/pre-commit-jsonnet
- Owner: cybozu
- License: apache-2.0
- Created: 2022-04-22T08:49:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-21T09:51:18.000Z (2 months ago)
- Last Synced: 2026-01-21T20:43:48.018Z (2 months ago)
- Topics: jsonnet, pre-commit-hooks
- Language: Go
- Homepage:
- Size: 54.7 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit-jsonnet
[](https://github.com/cybozu/pre-commit-jsonnet/actions/workflows/lint_and_tests.yml)
[pre-commit](https://pre-commit.com/) hooks for [jsonnet](https://jsonnet.org/).
## Usage
Add the following to your `.pre-commit-config.yaml`:
```yaml
repos:
- repo: https://github.com/cybozu/pre-commit-jsonnet
rev: v0.3.1
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
```