-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
83 lines (83 loc) · 2.47 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
---
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-github-workflow-push-schema
files: "^\\.github/config/workflows/workflow-push.json$"
args:
- "--schemafile"
- ".github/config/schemas/workflows/workflow-push.json"
stages: [commit]
- id: check-jsonschema
name: check-github-workflow-publish-to-galaxy-schema
files: "^\\.github/config/workflows/workflow-publish-to-galaxy.json$"
args:
- "--schemafile"
- ".github/config/schemas/workflows/workflow-publish-to-galaxy.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"
- "./.yamllint.yml"
stages: [commit]
- repo: https://github.com/cicd-tools-org/pre-commit.git
rev: 0.2.0
hooks:
- id: format-shell
args:
- "-w"
- "--indent=2"
- "-ci"
- "-sr"
exclude: "^roles/firewall/templates/pf-configure\\.sh\\.j2$"
files: "^.+\\.(bash|bash\\.j2|sh|sh\\.j2)$"
- id: format-toml
- id: lint-ansible
files: "^roles/.+\\.(yaml|yml)$|^.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: "^roles/firewall/templates/pf-configure\\.sh\\.j2$"
files: "^.+\\.(bash|bash\\.j2|sh|sh\\.j2)$"
- id: security-credentials
- id: spelling-commit-message
- id: spelling-markdown
- 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]