Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated pre-commit config and readme
- Loading branch information
1 parent
1b7cbff
commit ece9c5d
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# How to use pre-commit hook: https://pre-commit.com | ||
- id: jsonnet-format | ||
name: Format fix for jsonnet/libsonnet files | ||
entry: jsonnetfmt -i | ||
name: jsonnetfmt | ||
description: Automatically format jsonnet files. | ||
entry: jsonnetfmt | ||
args: [-i] | ||
language: golang | ||
files: '\.(jsonnet|libsonnet)$' | ||
additional_dependencies: [ "github.com/google/go-jsonnet/cmd/jsonnetfmt" ] | ||
files: \.(jsonnet|libsonnet)$ | ||
minimum_pre_commit_version: 2.10.1 | ||
- id: jsonnet-lint | ||
name: jsonnet-lint | ||
description: Lint jsonnet files. | ||
entry: jsonnet-lint | ||
language: golang | ||
files: \.(jsonnet|libsonnet)$ | ||
minimum_pre_commit_version: 2.10.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters