-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
129 lines (116 loc) · 3.34 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config.json
fail_fast: false
default_stages:
- pre-commit
- pre-push
repos:
- repo: https://github.com/thlorenz/doctoc
rev: v2.2.0
hooks:
- id: doctoc
args:
- --update-only
- --maxlevel
- "3"
- --github
- --notitle
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_docs
args:
- --hook-config=--path-to-file=README.md
- --args=--config=.terraform-docs.yaml
- id: terraform_fmt
- id: terraform_tflint
args:
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terraform_trivy
# args:
# - --args=--config-file=__GIT_WORKING_DIR__/.tfsec.yaml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
exclude: "gotk-components.yaml"
args:
- --maxkb=200
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-symlinks
- id: check-xml
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args:
- --fix=auto
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args:
- -c
- .yamllint.yaml
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- id: remove-tabs
- repo: https://github.com/sirosen/texthooks
rev: 0.6.7
hooks:
- id: fix-smartquotes
- id: fix-ligatures
- id: forbid-bidi-controls
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint-fix
args:
- --config
- .markdownlint.yaml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
args:
- --ignore-path
- .prettierignore
- --config
- .prettierrc.yaml
- repo: https://github.com/k8s-at-home/sops-pre-commit
rev: v2.1.1
hooks:
- id: forbid-secrets
exclude: |
(?x)^(
kubernetes/kube-nas/apps/secops/vault-auth.yaml|
kubernetes/talos-flux/apps/secops/vault-auth.yaml|
kubernetes/talos-flux/apps/devops/tekton/triggers/interceptors.yaml|
kubernetes/talos-flux/apps/devops/tekton/triggers/release.yaml
)$()
- repo: https://github.com/zricethezav/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- repo: https://github.com/tarioch/flux-check-hook
rev: v0.5.0
hooks:
- id: check-flux-helm-values
exclude: |
(?x)^(
devenv/.*|
kubernetes/talos-flux/apps/home-automation/esphome/app/config/.+.yaml|
kubernetes/talos-flux/apps/home-automation/home-assistant/app/patches/db-init.yaml|
kubernetes/talos-flux/apps/github/actions-runner-controller/.+/helm-release.yaml
)$()