-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 1.18 KB
/
Makefile
File metadata and controls
40 lines (28 loc) · 1.18 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
.PHONY: dev-backend dev-frontend dev test lint format generate-data docker-up docker-down clean
dev-backend: ## Start backend with auto-reload
cd backend && uvicorn main:app --reload --port 8000
dev-frontend: ## Start frontend dev server
cd frontend && npm run dev
dev: ## Start both backend and frontend
make dev-backend & make dev-frontend
test: ## Run backend tests
cd backend && python -m pytest tests/ -v
lint: ## Check code style
cd backend && ruff check .
cd backend && ruff format --check .
format: ## Auto-format code
cd backend && ruff format .
generate-data: ## Generate synthetic wells and time series
cd backend && python -m data_generator.generate_wells
cd backend && python -m data_generator.generate_timeseries
docker-up: ## Start all services via Docker Compose
docker compose up -d
docker-down: ## Stop all services
docker compose down
e2e: ## Run Playwright E2E tests
cd frontend && npx playwright test
e2e-ui: ## Run Playwright E2E tests with UI
cd frontend && npx playwright test --ui
clean: ## Remove Python cache files
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true