45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
.PHONY: help install run format format-check lint typecheck test test-unit test-integration eval up down
|
|
|
|
UV_CACHE_DIR ?= $(CURDIR)/tmp/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 " 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/core/src tests
|
|
test:
|
|
uv run pytest tests/unit tests/integration
|
|
test-unit:
|
|
uv run pytest tests/unit
|
|
test-integration:
|
|
uv run pytest tests/integration
|
|
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
|