tmpl-fastapi/Makefile

27 lines
554 B
Makefile

dev:
python3 -m dotenv -f .env_debug run \
python3 -m uvicorn main:app --reload
prod:
python3 -m uvicorn main:app
format:
python3 -m autopep8 -r --in-place app/
check:
python3 -m mypy app/
python3 -m pylint app/
docker:
python3 -m dotenv -f version_code run \
docker build -t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$$VERSION .
docker-push:
python3 -m dotenv -f version_code run \
docker push ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$$VERSION
clean:
rm -rf app/__pycache__
rm -rf app/*/__pycache__
rm -rf __pycache__
rm -rf .mypy_cache