-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 712 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 712 Bytes
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
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " setup to setup the project"
@echo " run to run the project"
@echo " run_debug to run the project in debug mode"
@echo " run_docker to build and run the project in docker"
@echo " test to run the tests"
@echo " test_debug to run the tests in debug mode"
setup:
python3 -m venv venv
pip install -r requirements.txt
@echo API_KEY=fillme > .env
@echo Created .env file
run:
. venv/bin/activate
python3 main.py
run_debug:
. venv/bin/activate
isort .
black .
python3 main.py --debug
run_docker:
docker-compose build && docker-compose up
test:
pytest tests -q
test_debug:
pytest tests -v