-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
84 lines (84 loc) · 2.42 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
76
77
78
79
80
81
82
83
84
---
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.22.0
hooks:
- id: check-jsonschema
name: check-cookiecutter-schema
files: "^\\.cookiecutter/cookiecutter\\.json$"
args:
- "--schemafile"
- ".cicd-tools/boxes/bootstrap/schemas/cookiecutter.json"
stages: [commit]
- id: check-jsonschema
name: check-github-workflow-push-schema
files: "^\\.github/config/workflows/workflow-push.json$"
args:
- "--schemafile"
- ".github/config/schemas/workflows/workflow-push.json"
stages: [commit]
- id: check-metaschema
name: check-github-workflow-metaschemas
files: "^\\.github/config/schemas/.*\\.json$"
stages: [commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
args:
- "-c"
- "./profile/.yamllint.yml"
stages: [commit]
- repo: https://github.com/cicd-tools-org/pre-commit.git
rev: 0.1.0
hooks:
- id: format-shell
args:
- "-w"
- "--indent=2"
- "-ci"
- "-sr"
exclude: "^profile/templates/pf-enable\\.sh\\.j2$"
files: "^.+\\.(bash|bash\\.j2|sh|sh\\.j2)$"
- id: format-toml
- id: lint-ansible
args:
- "profile"
files: "^profile/.+\\.(yaml|yml)$|^profile/.ansible-lint$"
- id: lint-github-workflow
- id: lint-github-workflow-header
- id: lint-markdown
args:
- "-c"
- ".markdownlint.yml"
- id: lint-shell
args:
- "--color=always"
- "--source-path=SCRIPTDIR"
- "--exclude=SC2317"
- "-x"
exclude: "^profile/templates/local-backup\\.sh\\.j2$"
files: "^.+\\.(bash|bash\\.j2|sh|sh\\.j2)$"
- id: spelling-markdown
- id: spelling-commit-message
- repo: local
hooks:
- id: format-plist
name: format-plist
description: "Format PLIST files as XML."
language: system
entry: xmlformat
args:
- "--overwrite"
- "--selfclose"
files: "^.+\\.(plist|plist.j2)$"
require_serial: true
stages: [commit]