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: 7 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T02:58:19.000Z (about 2 years ago)
- Last Synced: 2025-03-07T01:51:21.642Z (7 months ago)
- Topics: jsonnet, pre-commit-hooks
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
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.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
```