From a85c53b4ac180d7d3aa29e33bdafa5130d483f41 Mon Sep 17 00:00:00 2001 From: rarebuffalo Date: Fri, 12 Jun 2026 19:10:58 +0530 Subject: [PATCH] add make shortcuts for test, run, and environment setup --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..59901b6 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +.PHONY: setup dev-server cli-install test db-migrate lint clean + +setup: + pip install -r requirements.txt + pip install -e cli/ + +dev-server: + uvicorn app.main:app --reload + +cli-install: + pip install -e cli/ + +test: + pytest tests/ -v + +db-migrate: + alembic upgrade head + +lint: + pip install -q black ruff + black --check app/ cli/ tests/ + ruff check app/ cli/ tests/ + +clean: + find . -type d -name "__pycache__" -exec rm -rf {} + + find . -type f -name "*.pyc" -delete