-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
75 lines (65 loc) · 2 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
72
73
74
75
---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
args: [ --enforce-all --maxkb=700 ]
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-json
- id: check-yaml
args: [ --allow-multiple-documents, --unsafe ]
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- id: remove-tabs
- repo: https://github.com/sirosen/texthooks
rev: 0.6.8
hooks:
- id: fix-smartquotes
- id: forbid-bidi-controls
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.125.1
hooks:
- id: renovate-config-validator
# Leaks
- repo: https://github.com/onedr0p/sops-pre-commit
rev: v2.1.1
hooks:
- id: forbid-secrets
# Linters
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [ '--config-file', '.gitlab/linters/.yamllint.yaml' ]
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v25.1.0
hooks:
- id: ansible-lint
args: [ '-c', '.gitlab/linters/.ansible-lint.yaml' ]
entry: env YAMLLINT_CONFIG_FILE=.gitlab/linters/.yamllint.yaml ansible-lint
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.25
hooks:
- id: terraform-fmt
- id: tflint
# Check commit name
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: [ ] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]