49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
.PHONY: help install run format format-check lint typecheck test test-unit test-integration migration-check eval up down
|
|
|
|
UV_CACHE_DIR ?= /tmp/ekp-uv-cache
|
|
export UV_CACHE_DIR
|
|
|
|
help:
|
|
@echo "Enterprise Knowledge Platform"
|
|
@echo " install Install development dependencies"
|
|
@echo " run Start the development API"
|
|
@echo " format Format code"
|
|
@echo " format-check Check formatting without modifying files"
|
|
@echo " lint Run linters"
|
|
@echo " typecheck Run static type checks"
|
|
@echo " test Run default tests"
|
|
@echo " test-unit Run unit tests"
|
|
@echo " test-integration Run integration tests"
|
|
@echo " migration-check Validate the forward migration path"
|
|
@echo " eval Run RAG evaluation"
|
|
@echo " up Start local dependencies"
|
|
@echo " down Stop local dependencies"
|
|
|
|
install:
|
|
uv sync --all-groups
|
|
run:
|
|
uv run uvicorn ekp_api.main:app --host "$${API_HOST:-0.0.0.0}" --port "$${API_PORT:-8000}"
|
|
format:
|
|
uv run ruff format .
|
|
format-check:
|
|
uv run ruff format --check .
|
|
lint:
|
|
uv run ruff check .
|
|
typecheck:
|
|
uv run mypy apps/api/src packages tests
|
|
test:
|
|
uv run pytest tests/unit tests/integration
|
|
test-unit:
|
|
uv run pytest tests/unit
|
|
test-integration:
|
|
uv run pytest tests/integration
|
|
migration-check:
|
|
uv run alembic heads
|
|
uv run alembic upgrade head --sql >/dev/null
|
|
eval:
|
|
uv run pytest tests/evaluation
|
|
up:
|
|
docker compose -f docker-compose.dev.yml up -d
|
|
down:
|
|
docker compose -f docker-compose.dev.yml down
|