-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 865 Bytes
/
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
help:
@echo " setup - Setup local dev environment"
@echo " build - Build project locally"
@echo " test - Run the tests"
@echo " format - Format the codebase"
@echo " start - Start streamkeeper"
@echo " daemon - Background streamkeeper"
setup:
@poetry install
@poetry run pre-commit install
test:
@poetry run pytest tests/
.PHONY: format lint
format:
@poetry run pre-commit run --all-files || \
( echo "Pre-commit has the following changes:\n----------" && git --no-pager diff \
&& echo "----------\n(Replace any starred output with the real values if you want to apply the patch)" \
&& false )
build:
@poetry build
publish:
@poetry publish
start:
@poetry run streamkeeper process ./config.ini
daemon:
@poetry run streamkeeper daemon ./config.ini