tmpl-flask/Makefile

20 lines
354 B
Makefile

dev:
FLASK_DEBUG="true" python3 -m flask run
prod:
python3 -m gunicorn -w 4 "app:create_app()"
format:
python3 -m autopep8 -r --in-place flaskapp/
check:
python3 -m mypy flaskapp/
python3 -m pylint flaskapp/
docker:
docker build -t ${REPO_OWNER}/${REPO_NAME_SNAKE} .
clean:
rm -rf flaskapp/__pycache__
rm -rf __pycache__
rm -rf .mypy_cache