-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.17 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
exclude: |
(?x)^(
README.md
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: check-yaml
- id: pretty-format-json
args: ["--indent", "2", "--autofix", "--no-sort-keys"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-metaschema
files: ^schemas/.*\.json$
- id: check-jsonschema
files: ^tests/e2e/data-applications/.*\.yml$
args: ["--schemafile", "schemas/app.schema.json"]
- id: check-jsonschema
files: ^tests/e2e/databricks-cluster-policies/.*\.yml$
args: ["--schemafile", "schemas/clusterPolicy.schema.json"]
- repo: local
hooks:
- id: terraform-fmt
name: terraform fmt
description: runs terraform fmt
entry: terraform fmt -recursive
language: system
pass_filenames: false
- repo: https://github.com/terraform-docs/terraform-docs
rev: v0.17.0
hooks:
- id: terraform-docs-go
args: ["-c", "./.terraform-docs.yml", "./"]