-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (23 loc) · 811 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
#----------------------------------------------
# Environment Variables
#----------------------------------------------
export PYTHONPATH = ./src:$PYTHONPATH
#----------------------------------------------
# Variables
#----------------------------------------------
PORT := 32000
#----------------------------------------------
# Commands
#----------------------------------------------
run:
poetry run uvicorn src.main:create_app --port $(PORT) --factory --reload
test:
poetry run pytest -c pyproject.toml
format:
poetry run black --config=pyproject.toml .
poetry run isort --sp=pyproject.toml .
check:
poetry run mypy --config-file=pyproject.toml .
poetry run black --config=pyproject.toml --check .
poetry run isort --sp=pyproject.toml --check .
poetry run flake8 --toml-config=pyproject.toml .