Skip to content

Commit 4a3144a

Browse files
gaurav517sbarzowski
authored andcommitted
pre-commit hook to format jsonnet files
1 parent 6d6c293 commit 4a3144a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# How to use pre-commit hook: https://pre-commit.com
2+
- id: jsonnet-format
3+
name: Format fix for jsonnet/libsonnet files
4+
entry: jsonnetfmt -i
5+
language: golang
6+
files: '\.(jsonnet|libsonnet)$'
7+
additional_dependencies: [ "github.com/google/go-jsonnet/cmd/jsonnetfmt" ]

0 commit comments

Comments
 (0)