-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
68 lines (68 loc) · 1.74 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
exclude: charts/
- id: check-merge-conflict
- exclude: README.md
id: end-of-file-fixer
- exclude: README.md
id: trailing-whitespace
- id: mixed-line-ending
- id: check-added-large-files
- repo: https://github.com/norwoodj/helm-docs
rev: v1.11.0
hooks:
- id: helm-docs
args:
- --output-file=README.md
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.1
hooks:
- id: terraform_fmt
- id: terraform_tflint
- id: terraform_docs
args:
- --hook-config=--add-to-existing-file=true # Boolean. true or false
- --hook-config=--create-file-if-not-exist=true # Boolean. true or false
- id: terraform_tfsec
args:
- --args=--exclude-downloaded-modules
# - id: terraform_providers_lock
# - id: terrascan
# args:
# - --args=--non-recursive
- id: terraform_validate
exclude: infrastructure/modules/([^/]*)/[^/].+$
# - repo: https://github.com/bridgecrewio/checkov.git
# rev: '2.3.33'
# hooks:
# - id: checkov
# # verbose: true
# args: [
# # '--download-external-modules', 'true',
# '--framework', 'terraform'
# ]
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.13.0
hooks:
- id: commitizen
stages:
- commit-msg
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
# - id: go-lint
# - id: go-vet
- id: go-mod-tidy
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.22.0
hooks:
- id: check-github-workflows
- id: check-github-actions