This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.86 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
---
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.22.0
hooks:
- id: check-jsonschema
name: check-cookiecutter-schema
files: "^(cookiecutter\\.json|\\.github/scenarios/.*\\.json)$"
args:
- "--schemafile"
- ".cicd-tools/boxes/bootstrap/schemas/cookiecutter.json"
stages: [commit]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
args:
- "-c"
- "./{{cookiecutter.project_slug}}/.yamllint.yml"
exclude: "^{{cookiecutter\\.project_slug}}/.+$"
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: "^{{cookiecutter\\.project_slug}}/.+$|^\\.cicd-tools/boxes/.+$"
files: "^.+\\.(bash|sh)$"
- id: format-toml
- id: lint-github-workflow
exclude: "^{{cookiecutter\\.project_slug}}/.+$"
- id: lint-github-workflow-header
exclude: "^{{cookiecutter\\.project_slug}}/.+$"
- id: lint-markdown
args:
- "-c"
- "{{cookiecutter.project_slug}}/.markdownlint.yml"
exclude: "^{{cookiecutter\\.project_slug}}/.+$"
- id: lint-shell
args:
- "--color=always"
- "--source-path=SCRIPTDIR"
- "--exclude=SC2317"
- "-x"
exclude: "^{{cookiecutter\\.project_slug}}/.+$|^\\.cicd-tools/boxes/.+$"
- id: spelling-commit-message
- id: spelling-markdown
exclude: "^{{cookiecutter\\.project_slug}}/.+$"