-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-hooks.yaml
53 lines (47 loc) · 1.39 KB
/
.pre-commit-hooks.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
- id: check-branch-linearity
name: Check for git branch linearity
language: script
entry: ./git-branch-linearity.sh
always_run: true
pass_filenames: false
stages: [push]
- id: check-branch-name
name: Check branch name
language: script
entry: ./branch-naming.sh
always_run: true
pass_filenames: false
stages: [push]
- id: no-ephemeral-links
name: No ephemeral links
language: script
entry: ./no-ephemeral-links.sh
stages: [commit]
- id: fastapi-generate-openapi-specification
name: Generate Open API specification from a Fast API
language: script
entry: ./fastapi-generate-openapi-specification.sh
stages: [commit]
pass_filenames: false
- id: gitops-values-validation
name: GitOps values JSON schema validation
language: python
entry: python -m kp_pre_commit_hooks.gitops-values-validation
stages: [commit]
always_run: true
pass_filenames: false
additional_dependencies:
- jsonschema==4.19.0
- requests==2.31.0
- ruamel-yaml==0.17.32
- urllib3==1.26.15
- pyyaml==6.0.1
- termcolor==2.4.0
- semver==3.0.2
- id: kafka-check-schemas
name: Check if local Kafka Schemas are up to date with code
language: script
entry: ./kafka/check-local-schemas.sh
stages: [commit]
files: ^(schemas/|src/main/scala/[^/]+/models/)
pass_filenames: false