-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
68 lines (61 loc) · 1.65 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
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config.json
# yamllint disable rule:quoted-strings
default_stages: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: "/resources/upstream\\.ya?ml$"
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: [--strict]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: [--severity=error]
exclude: ^.git
files: "\\.sh$"
- repo: local
hooks:
- id: make-build
name: make build
language: system
entry: make build
stages: [pre-commit]
- id: render-charts
name: render helm charts
language: script
entry: tests/render-charts.sh
pass_filenames: true
files: "/upstream/Chart\\.ya?ml$"
stages: [pre-commit]
- id: build-kustomizations
name: build kustomization files
language: script
entry: tests/build-kustomizations.sh
pass_filenames: true
files: "kustomization\\.yaml$"
stages: [pre-commit]
- id: validate-manifests
name: validate kubernetes manifests
language: script
entry: tests/validate-manifests.sh
pass_filenames: true
files: "(apps|defs|bootstrap)/.+\\.ya?ml$"
stages: [pre-commit]
# - id: prepush
# name: pre-push actions
# language: system
# entry: make prepush
# stages: [pre-push]