-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.14 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
repos:
- repo: https://github.com/norwoodj/helm-docs
rev: v1.14.2
hooks:
- id: helm-docs
args:
# Make the tool search for charts only under the `example-charts` directory
- --chart-search-root=charts/microservice-chart
## general
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# Common errors
- id: end-of-file-fixer
exclude_types: [sql]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude_types: [sql, markdown]
- id: check-yaml
exclude: charts
args:
- --unsafe
- id: check-executables-have-shebangs
# Cross platform
- id: check-case-conflict
- id: mixed-line-ending
args: [--fix=lf]
exclude_types: [sql]
# Security
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key
- repo: local
hooks:
- id: helm ct-lint
name: Helm Chart Testing Lint
entry: bash -c "ct lint --config ct.yaml --all --lint-conf ct.yaml"
language: system
pass_filenames: false