[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "oghma-proxy"
version = "0.1.0"
description = "RAG Proxy for SkyrimNet - Injects Tamrielic lore into NPC conversations"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
    { name = "dafit", email = "dafit@eachpath.local" },
]

dependencies = [
    "fastapi>=0.109.0",
    "uvicorn[standard]>=0.27.0",
    "httpx>=0.26.0",
    "chromadb>=0.4.22",
    "pydantic>=2.5.0",
    "pydantic-settings>=2.1.0",
    "pyyaml>=6.0.1",
    "structlog>=24.1.0",
    "psycopg[binary]>=3.1.0",  # For phoebe logging
]

[project.optional-dependencies]
dev = [
    "pytest>=7.4.0",
    "pytest-asyncio>=0.23.0",
    "httpx>=0.26.0",
    "ruff>=0.1.0",
]
ingest = [
    "pandas>=2.1.0",
    "gspread>=5.12.0",
    "sentence-transformers>=2.2.0",
]

[project.scripts]
oghma-proxy = "oghma_proxy.main:main"
oghma-ingest = "oghma_proxy.ingest:main"
oghma-export-packs = "oghma_proxy.export_packs:main"

[tool.ruff]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
