-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.7 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: detect-private-key
- id: fix-encoding-pragma
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
hooks:
- id: yamllint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint-fix
- id: markdownlint
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-workflows
- name: Validate docker-compose.yml
id: check-jsonschema
# match docker-compose.yml or docker-compose.yaml
files: docker-compose\.ya?ml$
# "https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"
args: ["--schemafile", "./.schemas/compose-spec.json"]
- name: Validate prometheus.yml
id: check-jsonschema
files: services-monitoring/prometheus/prometheus\.yml$
# https://json.schemastore.org/prometheus.json
args: ["--schemafile", "./.schemas/prometheus.json"]
- name: Validate traefik.yml
id: check-jsonschema
files: system/traefik\.yml$
# https://json.schemastore.org/traefik-v2.json
args: ["--schemafile", "./.schemas/traefik-v2.json"]
- name: Validate traefik file provider
id: check-jsonschema
files: system/traefik/(.*)\.yml$
# https://json.schemastore.org/traefik-v2.json
args: ["--schemafile", "./.schemas/traefik-v2-file-provider.json"]