forked from elastisys/compliantkubernetes-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (36 loc) · 1.07 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
# Docs: https://pre-commit.com/
#
# Quickstart:
# $ pip3 install pre-commit
# $ pre-commit install
# < edit json, yaml, (ba)sh, add trailing whitespace etc >
# $ git add .
# $ git commit
#
# If the pre-commit hook is broken, it can be removed by deleting the file
# at .git/hooks/pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-json
exclude: helmfile/upstream/|helmfile/elastisys/
- id: check-yaml
exclude: helmfile/|bootstrap/
args: [--allow-multiple-documents]
- id: end-of-file-fixer
exclude: helmfile/upstream/|helmfile/elastisys/
- id: trailing-whitespace
exclude: helmfile/upstream/|helmfile/elastisys/
- id: check-merge-conflict
- id: no-commit-to-branch
- repo: https://github.com/robonaut/pre-commit-hooks
rev: feature/ruby-3-compat
hooks:
- id: shellcheck
additional_dependencies: []
args:
- "--external-sources"
exclude: helmfile/upstream/|helmfile/elastisys/|helmfile/charts/opensearch/configurer/
- id: markdownlint
exclude: helmfile/upstream/|helmfile/elastisys/