[project]
name = "codeflash-service"
version = "0.1.0"
description = "GitHub App for code review and optimization"
requires-python = ">=3.12"
dependencies = [
    "fastapi>=0.115.0",
    "uvicorn[standard]>=0.34.0",
    "pyjwt[crypto]>=2.9.0",
    "httpx>=0.28.0",
    "cachetools>=5.5.0",
    "stamina>=2.4.0",
]

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

[tool.hatch.build.targets.wheel]
packages = ["github_app"]

[project.scripts]
codeflash-service = "github_app.app:main"

[dependency-groups]
dev = [
    "pytest>=8.0",
    "pytest-asyncio>=0.25.0",
    "respx>=0.22.0",
    "ruff>=0.15.0",
    "mypy>=1.14",
]

[tool.ruff]
line-length = 88
target-version = "py312"

[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "TCH", "ANN"]

[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ANN", "SIM117"]

[tool.mypy]
strict = true
pretty = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = ["e2e: end-to-end tests requiring network access"]
