32 lines
588 B
Makefile
32 lines
588 B
Makefile
WATCH_COMMAND=poetry run uvicorn --reload --host=::1 {{cookiecutter.pkg_name}}.application:app
|
|
SERVER_COMMAND=poetry run uvicorn --host=::1 {{cookiecutter.pkg_name}}.application:app
|
|
|
|
.PHONY: tags test
|
|
|
|
watch:
|
|
${WATCH_COMMAND}
|
|
|
|
test:
|
|
poetry run pytest -x -n auto --dist loadscope
|
|
|
|
retest:
|
|
poetry run pytest -lx --ff -n auto
|
|
|
|
cov:
|
|
poetry run pytest --cov={{cookiecutter.pkg_name}}
|
|
|
|
server:
|
|
${SERVER_COMMAND}
|
|
|
|
update:
|
|
poetry update
|
|
|
|
build:
|
|
poetry build -f wheel
|
|
|
|
wheels: build
|
|
sh -c "poetry run pip wheel -w dist dist/`poetry version 2>/dev/null | tr ' ' -`-*.whl"
|
|
|
|
tags:
|
|
uctags -R
|