-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 1.17 KB
/
Makefile
File metadata and controls
47 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: help install migrate seed run-api test lint typecheck docker-up docker-down
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
pip install -e ".[dev]"
migrate: ## Apply database migrations
@for f in finsight/database/migrations/*.sql; do \
echo "Applying $$f..."; \
psql "$$DATABASE_URL" -f "$$f"; \
done
seed: ## Seed dev tenant and print API key
python scripts/seed_tenant.py
run-api: ## Run the FastAPI server
uvicorn finsight.api.main:app --reload --port 8000
test: ## Run all tests
pytest tests/ -v
test-unit: ## Run unit tests only
pytest tests/unit/ -v
test-integration: ## Run integration tests only
pytest tests/integration/ -v -m integration
lint: ## Run ruff linter
ruff check finsight/ tests/
format: ## Auto-fix linting issues
ruff check --fix finsight/ tests/
ruff format finsight/ tests/
typecheck: ## Run mypy
mypy finsight/
docker-up: ## Start all Docker services
docker-compose up -d
docker-down: ## Stop all Docker services
docker-compose down
verify: ## Run end-to-end smoke test
python scripts/verify_pipeline.py