-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
35 lines (34 loc) · 1.21 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
repos:
- repo: https://github.com/Gaspi/pre-commit-hooks
rev: v0.5
hooks:
# Validate schemas using the jsonschema.validators package
- id: validate-json-schemas
args:
# Forbid legacy https://json-schema.org/draft/2020-12/schema schema validator and suggest Draft 7 instead
- --forbid-legacy
# Ensure technically facultative attribute (such as `type`) are systematically specified
- id: missing-attributes-schemas
args:
# Also require `items` to be systematically specified for arrays
- --check-items
# Also require `properties` to be systematically specified for object
- --check-properties
# Also require `properties` to be systematically specified for object
- --check-defaults
- id: version-bump
args:
- --branch
- main
# Run `helm dependency update` then `helm lint` on all (modified) charts
- id: helmlint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# Check yaml files except for Helm templates
- id: check-yaml
exclude: "/(templates|tests)/"
# Check empty new line before EOF (ignore generated charts)
- id: end-of-file-fixer
# Check trailing whitespaces (ignore generated charts)
- id: trailing-whitespace