[project]
name = "enduro-trails"
version = "0.1.0"
requires-python = ">=3.10"
description = "Карта эндуро-маршрутов с рельефом, навигацией и слоями terrain/TRI/hillshade"
readme = "README.md"
dependencies = [
    "fastapi==0.111.0",
    "uvicorn==0.29.0",
    "shapely==2.0.4",
    "mapbox-vector-tile==2.2.0",
    "httpx==0.27.0",
    "defusedxml==0.7.1",
    "pyyaml==6.0.1",
]

[project.optional-dependencies]
dev = [
    "ruff>=0.4.0",
    "pytest>=8.0",
    "httpx>=0.27",
    "pytest-asyncio>=0.23",
    "lxml==5.2.2",
]

[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]

[tool.ruff]
target-version = "py310"
line-length = 120

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
    "network: contract smoke tests that hit live HTTP endpoints (deselect with '-m \"not network\"')",
    "perf: performance tests; run on-demand with '-m perf' (ET-012 REQ-F-13)",
]
addopts = "-m 'not network and not perf'"
