-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
78 lines (69 loc) · 2.63 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/camunda/infraex-common-config
rev: 1.2.8 # use tags until renovate supports sha: https://github.com/renovatebot/renovate/issues/22567
hooks:
- id: update-action-readmes-docker
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: check-symlinks
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- repo: https://github.com/rhysd/actionlint
rev: v1.7.4
hooks:
- id: actionlint-docker
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.80.0
hooks:
- id: renovate-config-validator
args: [--strict]
# TODO : revert this when https://github.com/renovatebot/pre-commit-hooks/issues/2460 is fixed
language_version: 20.18.0
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0 # use tags until renovate supports sha: https://github.com/renovatebot/renovate/issues/22567
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--strict, --force-scope]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt
- id: terraform_tflint
exclude: (_override.tf)
- id: terraform_docs
args:
- --hook-config=--path-to-file=README.md
- --hook-config=--create-file-if-not-exist=true
- --hook-config=--add-to-existing-file=true
- --args=--config=.lint/terraform_docs/.terraform-docs.yml
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: no-go-testing
- id: go-mod-tidy
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
args: [--external-sources, --source-path, .github/workflows/scripts, '--exclude=SC2154,SC2034,SC1091']
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [-c, .lint/yamllint/.yamllint.yaml]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt