.PHONY: dev backend frontend test build lint import-scan

dev:
	docker compose up --build

backend:
	cd backend && uv run uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

frontend:
	cd frontend && npm run dev

test:
	cd backend && uv run pytest -q
	cd frontend && npm test

build:
	cd frontend && npm run build

lint:
	cd backend && uv run ruff check app tests
	cd frontend && npm run lint

import-scan:
	curl -X POST http://localhost:8000/api/imports/scan
