tmpl-flask/Makefile

21 lines
360 B
Makefile
Raw Normal View History

2023-02-14 19:53:57 +04:00
dev:
FLASK_DEBUG="true" python3 -m flask run
2023-02-14 19:53:57 +04:00
prod:
python3 -m gunicorn -w 4 "app:create_app()"
2023-02-14 19:53:57 +04:00
format:
python3 -m autopep8 -r --in-place flaskapp/
check:
python3 -m mypy flaskapp/
python3 -m pylint flaskapp/
docker:
2023-02-17 16:14:45 +04:00
docker build -t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE} .
2023-02-14 19:53:57 +04:00
clean:
rm -rf flaskapp/__pycache__
2023-02-15 19:56:28 +04:00
rm -rf __pycache__
2023-02-14 19:53:57 +04:00
rm -rf .mypy_cache