Files
gatos-tejada/api/pyproject.toml
T
kiskaadee ccb53d87a2 feat(api): scaffold async backend with SSO adapter, consensus engine, and TDD suite
- Adopt PEP 517/518 src-layout for api package using hatchling and uv.
- Configure dependencies: FastAPI, async SQLAlchemy 2.0, GeoAlchemy2, pgvector, and Pydantic v2.
- Implement decoupled SSO Identity Provider protocol with MockDevAdapter, GoogleOAuthAdapter, and AuthService.
- Define PostGIS and pgvector SQLAlchemy database models in api/db_models/.
- Implement pure-logic Consensus Engine with Haversine distance, Velocity Checks, and cluster confidence scoring.
- Add test suite in api/tests/ with 18 unit/integration tests and configure Ruff and Pyright quality gates.
2026-10-13 06:50:16 -05:00

58 lines
1.2 KiB
TOML

[project]
name = "novias-del-gato-api"
version = "0.1.0"
description = "FastAPI backend for Novias del Gato: digital ecosystem for Cali's public art"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"pydantic>=2.7.0",
"pydantic-settings>=2.2.0",
"email-validator>=2.1.0",
"sqlalchemy[asyncio]>=2.0.30",
"asyncpg>=0.29.0",
"psycopg[binary]>=3.1.18",
"geoalchemy2>=0.15.0",
"pgvector>=0.3.0",
"alembic>=1.13.0",
"pyjwt>=2.8.0",
"python-multipart>=0.0.9",
"httpx>=0.27.0"
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"ruff>=0.6.0",
"pyright>=1.1.380"
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E501"]
[tool.pyright]
pythonVersion = "3.14"
typeCheckingMode = "standard"
include = ["src", "tests"]
exclude = ["**/__pycache__", ".venv"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
pythonpath = ["src"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/api"]