-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
74 lines (66 loc) · 1.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-toml
- id: end-of-file-fixer
exclude: '.*\.(ambr)$'
- id: trailing-whitespace
exclude: '.*\.(ambr)$'
- id: check-yaml
- id: check-json
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
language: docker_image
types: ["dockerfile"]
entry: ghcr.io/hadolint/hadolint hadolint
- repo: local
hooks:
- id: test
name: Run Tests
entry: poetry run python -m pytest
pass_filenames: false
language: system
stages: [push]
- id: cdk-synth
name: Run CDK Synth
entry: poetry run cdk synth
pass_filenames: false
language: system
stages: [push]
- id: checkov
name: Run Checkov
entry: poetry run checkov --config-file .checkov --baseline .checkov.baseline
pass_filenames: false
language: system
stages: [push]
- id: black
name: Run Black
entry: poetry run black
language: system
types: [file, python]
stages: [commit]
- id: ruff
name: Run Ruff
entry: poetry run ruff check --fix
language: system
types: [file, python]
stages: [commit]
- id: yamllint
name: Run Yamllint
entry: poetry run yamllint
language: system
types: [file, yaml]
stages: [commit]
- id: commit-message
name: Check commit message
entry: poetry run cz check --commit-msg-file
language: system
stages: [commit-msg]