From 6bc29e0841a43313df71ead295aa7cb5464ac601 Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 30 Nov 2025 18:03:11 -0500 Subject: [PATCH] chore: add Makefile with test and docker commands --- Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f32d01 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +.PHONY: test test-unit test-integration install dev build up down clean + +# Install dependencies +install: + uv sync + +# Run unit tests (excludes integration tests) +test-unit: + uv run pytest tests/ -v --ignore=tests/test_integration.py + +# Run integration tests (requires Docker) +test-integration: + uv run pytest tests/test_integration.py -v -s + +# Run all tests +test: test-unit + +# Run dev server locally +dev: + uv run uvicorn app.main:app --reload + +# Docker commands +build: + docker-compose build + +up: + docker-compose up -d + +down: + docker-compose down + +# Clean up +clean: + rm -rf .venv venv __pycache__ .pytest_cache + find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true + find . -type f -name "*.pyc" -delete 2>/dev/null || true