-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
62 lines (55 loc) · 1.68 KB
/
.pre-commit-hooks.yaml
File metadata and controls
62 lines (55 loc) · 1.68 KB
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
- id: check-branch-linearity
name: Check for git branch linearity
language: script
entry: ./git-branch-linearity.sh
always_run: true
pass_filenames: false
stages: [pre-push]
- id: check-branch-name
name: Check branch name
language: script
entry: ./branch-naming.sh
always_run: true
pass_filenames: false
stages: [pre-push]
- id: no-ephemeral-links
name: No ephemeral links
language: script
entry: ./no-ephemeral-links.sh
stages: [pre-commit]
- id: fastapi-generate-openapi-specification
name: Generate Open API specification from a Fast API
language: script
entry: ./fastapi-generate-openapi-specification.sh
stages: [pre-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: [pre-commit]
always_run: true
pass_filenames: false
additional_dependencies:
- jsonschema==4.19.0
- requests==2.31.0
- ruamel-yaml==0.17.32
- urllib3[secure]==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: [pre-commit]
files: ^(schemas/|src/main/scala/[^/]+/models/)
pass_filenames: false
- id: terraform-repo-compliance
name: Check Terraform repository compliance
language: python
entry: python -m kp_pre_commit_hooks.terraform_repo_compliance
stages: [pre-commit]
always_run: true
pass_filenames: false
files: \.tfvars$