-
Notifications
You must be signed in to change notification settings - Fork 58
/
.pre-commit-config.yaml
58 lines (56 loc) · 1.65 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
default_install_hook_types: [commit-msg, pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
args:
- --unsafe
- id: check-symlinks
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
args:
- --maxkb=15000
- id: detect-private-key
stages: [pre-commit]
- repo: https://github.com/tofuutils/pre-commit-opentofu
rev: v2.1.0
hooks:
- id: tofu_fmt
stages: [pre-commit]
- id: tofu_docs
stages: [pre-commit]
args:
- --args=--config=.config/terraform-docs.yml
exclude: "^modules|^example|^tools"
- id: tofu_validate
stages: [pre-commit]
exclude: ^examples
args:
- --tf-init-args=-upgrade
- --hook-config=--retry-once-with-cleanup=true
- id: tofu_tflint
stages: [pre-commit]
exclude: ^examples
args:
- --args=--config=__GIT_WORKING_DIR__/.config/tflint.hcl
- --env-vars=TFLINT_LOG="info"
- id: tofu_trivy
stages: [pre-commit]
args:
- --args=--severity HIGH,CRITICAL
- --args=--skip-dirs '**/.terraform'
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.18.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]