Skip to content

Commit

Permalink
Merge pull request #313 from garethahealy/main
Browse files Browse the repository at this point in the history
added pre-commit
  • Loading branch information
garethahealy authored Aug 1, 2024
2 parents 3622f70 + a950024 commit 7c6589b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
repos:
- repo: local
hooks:
- id: opa-check
name: OPA check
description: Check syntax of staged Rego files
entry: opa check
args: [ 'policy', '--strict' ]
pass_filenames: false
language: system
- id: opa-fmt
name: OPA fmt
description: Formats Rego policy using opa fmt
entry: opa fmt
args: [ '--write', 'policy' ]
language: system
- id: regal-lint
name: regal lint
description: Lint the rego
entry: regal lint
args: [ 'policy' ]
language: system
- id: konstraint-doc
name: konstraint-doc
description: Generate docs
entry: konstraint doc --output POLICIES.md
language: system
pass_filenames: false

0 comments on commit 7c6589b

Please sign in to comment.