.PHONY: check lint typecheck test api-types build deploy

check: lint typecheck test

lint:
	ruff check app scripts
	ruff format --check app scripts

typecheck:
	cd frontend && npm run typecheck

test:
	pytest -q

api-types:
	python scripts/gen_openapi.py openapi.json
	cd frontend && npx openapi-typescript ../openapi.json -o src/api/schema.d.ts

build:
	srv-gw deploy --project coachpapa --build

deploy: build
