-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (47 loc) · 1.29 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
args: [
--markdown-linebreak-ext=md
]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
args:
- --unsafe
- id: detect-private-key
stages: [pre-commit]
# requires the dependencies installing
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt
stages: [pre-commit]
- id: terraform_tflint
exclude: ^examples
stages: [pre-commit]
- id: terraform_docs
stages: [pre-commit]
- id: terraform_validate
stages: [pre-commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.18.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
pass_filenames: false
- repo: https://github.com/bridgecrewio/checkov.git
rev: '3.2.334'
hooks:
- id: checkov_diff
language_version: python3.12
args:
- '-f'
stages: [pre-commit]