-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
56 lines (56 loc) · 1.54 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
# spell-checker: disable
---
repos:
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
files: \.(yml|yaml|talismanrc)$
types:
- file
- yaml
entry: yamllint --strict
- repo: https://github.com/ansible/ansible-lint
rev: v24.9.0
hooks:
- id: ansible-lint
# Use the full ansible package, not just ansible-core
# https://ansible.readthedocs.io/projects/lint/configuring/#pre-commit-setup
additional_dependencies:
- ansible
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.95.0
hooks:
- id: terraform_fmt
- id: terraform_docs
args:
- '--args=--sort-by=required --hide=providers'
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages:
- commit-msg
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args:
- -b
- main
- id: trailing-whitespace
- repo: https://github.com/thoughtworks/talisman
rev: v1.32.0
hooks:
- id: talisman-commit
entry: cmd --githook pre-commit