-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
73 lines (64 loc) · 1.96 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: content/
- id: check-toml
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
hooks:
- id: remove-crlf
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.6.0
hooks:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.0
hooks:
- id: terraform_fmt
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
exclude: layout/
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
hooks:
- id: yamllint
# Why '--strict'? To return a non-zero exit code on warnings
# so pre-commit captures it as a failure.
args: [--strict, --config-file, .yamllint.yaml]
- repo: local
hooks:
# https://github.com/hadolint/hadolint
- id: dockerfile-lint
name: Dockerfile Lint
language: docker_image
entry: hadolint/hadolint:v2.12.0 hadolint
files: ^.*Dockerfile.*$
# https://github.com/koalaman/shellcheck
- id: shellcheck-lint
name: Shellcheck
language: docker_image
entry: koalaman/shellcheck:v0.9.0
types: [shell]
# https://github.com/igorshubovych/markdownlint-cli
- id: markdown-lint
name: Markdown Lint
language: docker_image
entry: ghcr.io/igorshubovych/markdownlint-cli:v0.32.2
args: [--config, .markdownlintrc, --fix]
types: [markdown]
exclude: content/
- id: script-lint
name: script-lint
entry: just script-lint
language: system
pass_filenames: false
files: "script/.*$"