Skip to content

Instantly share code, notes, and snippets.

@carc1n0gen
Last active February 9, 2024 18:37
Show Gist options
  • Save carc1n0gen/6752119b5a678d617a3700af8b863cb8 to your computer and use it in GitHub Desktop.
Save carc1n0gen/6752119b5a678d617a3700af8b863cb8 to your computer and use it in GitHub Desktop.
Makefile for a flask python web app
all: setup dev
setup:
test -d .venv || python -m venv .venv
. .venv/bin/activate; pip install -r requirements.txt
dev:
. .venv/bin/activate; flask --app app.create_app run --debug
test:
. .venv/bin/activate; PYTHONPATH=. pytest
clean:
rm -rf .venv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment