-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
80 lines (80 loc) · 2.1 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
75
76
77
78
79
80
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-added-large-files
- id: check-json
- id: check-toml
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/python-poetry/poetry
rev: 1.7.0
hooks:
- id: poetry-check
name: poetry check producer
args: ["-C", "./producer"]
- id: poetry-lock
name: poetry lock producer
args: ["-C", "./producer"]
- id: poetry-export
name: poetry export producer dev dependencies
args: [
"-C",
"./producer",
"-f", "requirements.txt",
"-o",
"./producer/requirements-dev.txt",
"--without-hashes",
"--with",
"dev"
]
always_run: true
- id: poetry-export
name: poetry export producer dependencies
args: [
"-C",
"./producer",
"-f", "requirements.txt",
"-o",
"./producer/requirements.txt",
"--without-hashes"
]
always_run: true
- id: poetry-check
name: poetry check consumer
args: ["-C", "./consumer"]
- id: poetry-lock
name: poetry lock consumer
args: ["-C", "./consumer"]
- id: poetry-export
name: poetry export consumer dev dependencies
args: [
"-C",
"./consumer",
"-f", "requirements.txt",
"-o",
"./consumer/requirements-dev.txt",
"--without-hashes",
"--with",
"dev"
]
always_run: true
- id: poetry-export
name: poetry export consumer dependencies
args: [
"-C",
"./consumer",
"-f", "requirements.txt",
"-o",
"./consumer/requirements.txt",
"--without-hashes"
]
always_run: true