-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
71 lines (59 loc) · 1.71 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
69
70
71
---
# https://github.com/antonbabenko/pre-commit-terraform
# https://github.com/pre-commit/pre-commit-hooks
# https://github.com/python-jsonschema/check-jsonschema/
fail_fast: true
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
name: Check Conventional Commit
stages: [commit-msg]
args: [--strict, --force-scope]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
name: Check YAML
stages: [pre-commit]
- id: mixed-line-ending
name: Check Mixed Line Endings
stages: [pre-commit]
args: [--fix=lf]
- id: end-of-file-fixer
name: Check End of Files
stages: [pre-commit]
- id: trailing-whitespace
name: Check Trailing Whitespace
stages: [pre-commit]
args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
name: Check for Merge Conflicts
stages: [pre-commit]
- id: detect-private-key
name: Check Private Keys
stages: [pre-commit]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_validate
name: Check Terraform Validate
stages: [manual]
- id: terraform_fmt
name: Check Terraform FMT
stages: [pre-commit]
args:
- --hook-config=--parallelism-limit=1
- id: terraform_docs
name: Check Terraform Docs
stages: [pre-commit]
args:
- --args=--config=.tfdocs-config.yml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
hooks:
- id: check-github-workflows
name: Check GitHub Workflows
stages: [pre-commit]
args: ["--verbose"]