-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
56 lines (50 loc) · 1.16 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
#
# WARP
# Pre Commit hooks
#
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: mixed-line-ending
args: ["-f", "lf"]
# check for secrets
- repo: https://github.com/zricethezav/gitleaks
rev: v8.8.6
hooks:
- id: gitleaks-docker
# check for spelling mistakes
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
# lint ansible playbooks
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v6.19.0
hooks:
- id: ansible-lint
args: [
"--project-dir", "box/ansible/",
"--exclude", ".github/",
"--exclude", ".pre-commit-config.yaml",
"--exclude", "venv/"
]
# lint github actions workflows
- repo: https://github.com/sirosen/check-jsonschema.git
rev: 0.18.3
hooks:
- id: check-github-workflows
# lint terraform
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
rev: v1.72.1
hooks:
- id: terraform_fmt
args:
- --args=-recursive -no-color
- id: terraform_validate
args:
- --args=-no-color