-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
94 lines (94 loc) · 2.48 KB
/
.pre-commit-config.yaml
File metadata and controls
94 lines (94 loc) · 2.48 KB
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
85
86
87
88
89
90
91
92
93
94
---
# pre-commit install --allow-missing-config
# pre-commit autoupdate
# pre-commit run --all-files --color auto
exclude: |
(?x)^(
\.pre-commit-config\.yaml$
)
fail_fast: true
default_stages:
- pre-commit
default_install_hook_types:
- commit-msg
- pre-commit
repos:
- repo: meta
hooks:
- id: identity
name: "meta | pre-commit hooks"
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.8
hooks:
- id: commitizen
name: "commitizen | validate commit messages"
stages:
- commit-msg
- repo: https://github.com/gitguardian/ggshield
rev: v1.48.0
hooks:
- id: ggshield
name: "security | scan for secrets"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
name: "git | block large files"
args: [--maxkb=2048]
- id: check-json
name: "general | check JSON files"
- id: check-toml
name: "general | check TOML files"
- id: end-of-file-fixer
name: "general | fix end of file"
- id: mixed-line-ending
name: "general | fix line ending"
args:
- --fix=auto
- id: trailing-whitespace
name: "general | remove trailing whitespace"
- id: pretty-format-json
name: "general | prettify JSON files"
args:
- --autofix
- --no-ensure-ascii
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint
name: "md | lint: run markdownlint-cli"
args:
- --config
- .config/.markdown-lint.yml
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
name: "yaml | lint: run yamllint"
args:
- -c
- .config/.yaml-lint.yml
- repo: https://github.com/ansible-community/ansible-lint
rev: v26.1.1
hooks:
- id: ansible-lint
name: "ansible | lint: run ansible-lint"
files: \.(yaml|yml)$
args:
- -c
- .config/.ansible-lint.yml
- --fix
- repo: local
hooks:
- id: pin-github-action
name: "gh-action | lint: pinned sha"
files: ^\.github/workflows/[^/]+\.ya?ml$
entry: "pin-github-action ."
args:
- --allow
- "irishlab-io/*"
language: node
additional_dependencies:
- pin-github-action@3.4.0
stages:
- manual