[project]
name = "codeflash-api"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
    "aiohttp>=3.13.5",
    "anthropic>=0.96.0",
    "asyncpg>=0.31.0",
    "attrs>=26.1.0.post1",
    "fastapi>=0.136.0",
    "libcst>=1.8.6",
    "openai>=2.32.0",
    "posthog>=7.13.0",
    "pydantic>=2.13.3",
    "pydantic-settings>=2.14.0",
    "sentry-sdk[fastapi]>=2.58.0",
    "uvicorn[standard]>=0.45.0",
]

[build-system]
requires = ["uv_build>=0.7.2,<0.8"]
build-backend = "uv_build"

[dependency-groups]
dev = [
    "httpx>=0.28.1",
    "mypy>=1.14",
    "pytest>=9.0.3",
    "pytest-asyncio>=1.3.0",
    "testcontainers[postgres]>=4.12",
]

[tool.mypy]
strict = true
pretty = true
