-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
73 lines (72 loc) · 2.17 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
---
ci:
skip: [chart-testing, helmlint]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: detect-private-key
name: Detect private keys
- id: check-merge-conflict
name: Check for merge conflicts
- id: check-added-large-files
name: Prevent giant files from being committed
- id: check-executables-have-shebangs
name: Checks that non-binary executables have a proper shebang
- id: check-shebang-scripts-are-executable
name: Checks that scripts with shebangs are executable
- id: trailing-whitespace
name: Trim trailing whitespaces
- id: end-of-file-fixer
name: Makes sure files end in a newline
exclude: README.md$
- id: mixed-line-ending
name: Replace mixed line endings
args: [--fix=lf]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: Detect secrets
exclude: ^charts/
- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.12.5
hooks:
- id: typos
name: Run spell checker
- repo: https://github.com/adrienverge/yamllint
# Update lint-test.yaml workflow when updating this.
rev: v1.35.1
hooks:
- id: yamllint
name: Lint YAML files
args: [-c, ./.github/configs/.yaml-lint.yml]
- repo: https://github.com/stackrox/kube-linter
rev: v0.7.1
hooks:
- id: kube-linter
name: Run KubeLinter
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.25
hooks:
- id: helmlint
name: Run helm lint
- repo: local
hooks:
- id: chart-testing
name: Run chart-testing (lint)
entry: scripts/lint.sh
language: system
types: [file]
pass_filenames: false
- repo: https://github.com/norwoodj/helm-docs
rev: v1.14.2
hooks:
- id: helm-docs-built
name: Generate README for charts
args: [--chart-search-root=charts, --skip-version-footer]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.1
hooks:
- id: check-github-workflows
- id: check-renovate