-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 826 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
36
37
38
39
40
help:
@echo "Functions to help managing the project"
@echo ""
@echo "help : Print this message"
@echo "migrations: Use alembic to run revision creation"
@echo "migrate Use alembic to run created migrations"
@echo "judge: Run pylint on src folder"
@echo "test: Run unit tests"
@echo "run: Run server with uvicorn"
@echo "run-reload: Run test server with uvicorn"
@echo "coverage: Run tests and coverage report"
@echo
migrations:
@alembic revision --autogenerate
migrate:
@alembic upgrade head
judge: bandit mypy
@pylint src/
test:
@pytest src/
coverage:
@coverage run --source=src/ -m pytest src/
@coverage report
run:
@uvicorn --host 0.0.0.0 --port ${PORT} src.api:app
run-reload:
@uvicorn src.api:app --reload
bandit:
@bandit -r src/
mypy:
@mypy src/