# docs/openapi.yaml is the API contract, vendored for tests/test_contract.py.
# geni-workflows is private, so it is copied from a local checkout (the same
# sibling path the SPA uses). Refresh after the contract changes, then
# `make check`.
GENI_WORKFLOWS ?= ../geni-workflows

.PHONY: sync-openapi lint test check

sync-openapi:
	cp $(GENI_WORKFLOWS)/docs/openapi.yaml docs/openapi.yaml
	cp $(GENI_WORKFLOWS)/docs/api-endpoints.md docs/api-endpoints.md

lint:
	ruff check .

test:
	pytest

check: lint test
