-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 1.44 KB
/
Makefile
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
SHELL=/bin/bash -o pipefail
install: requirements.txt
pip install -r requirements.txt
install-dev: requirements-dev.txt funtime
pip install -r requirements-dev.txt
funtime: ./pkg/turbine/src/function_deploy/requirements.txt
pip install -r ./pkg/turbine/src/function_deploy/requirements.txt
run-hooks:
pre-commit run --all-files
install-hooks:
pre-commit install
test:
tox
.PHONY: lint
lint:
black src
flake8 src
.PHONY: core_proto
core_proto:
python3 -m grpc_tools.protoc \
--proto_path=$(CURDIR)/pkg/turbine/proto/ \
--python_out=$(CURDIR)/pkg/turbine/src/turbine_app/proto_gen/ \
--grpc_python_out=$(CURDIR)/pkg/turbine/src/turbine_app/proto_gen/ \
--pyi_out=$(CURDIR)/pkg/turbine/src/turbine_app/proto_gen/ \
turbine.proto
.PHONY: validate_proto
validate_proto:
python3 -m grpc_tools.protoc \
--proto_path=$(CURDIR)/pkg/turbine/proto/ \
--python_out=$(CURDIR)/pkg/turbine/src/turbine_app/proto_gen/ \
--grpc_python_out=$(CURDIR)/pkg/turbine/src/turbine_app/proto_gen/ \
--pyi_out=$(CURDIR)/pkg/turbine/src/turbine_app/proto_gen/ \
validate.proto
.PHONY: service_proto
service_proto:
python3 -m grpc_tools.protoc \
--proto_path=$(CURDIR)/pkg/turbine/proto/ \
--python_out=$(CURDIR)/pkg/turbine/src/function_app/proto_gen/ \
--grpc_python_out=$(CURDIR)/pkg/turbine/src/function_app/proto_gen/ \
--pyi_out=$(CURDIR)/pkg/turbine/src/function_app/proto_gen/ \
service.proto