Files
collina-pld/pyproject.toml
T
Fernando Davila fced2263f8 feat(modelos): tenant, usuario y audit_trail con migración 0001_andamiaje
- Base común con convención de nombres; mixins ColumnasBase (id, created_at, created_by), Tenant (tenant_id) e Historico (valid_from/valid_to)
- Alembic lee DATABASE_URL del entorno y usa el engine de la app (WAL, claves foráneas)
- tests: la migración crea las tres tablas y coincide con los modelos; convenciones de columnas y snake_case; la sesión rechaza borrados
2026-10-06 11:21:38 -06:00

63 lines
1.4 KiB
TOML

[project]
name = "collina-pld"
version = "0.0.1"
description = "Prototipo de plataforma PLD/FT para CHM Compliance (Collina)"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "Proprietary" }
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.30",
"sqlalchemy>=2.0",
"alembic>=1.13",
"pydantic>=2.7",
"pydantic-settings>=2.3",
"jinja2>=3.1",
"openpyxl>=3.1",
"rapidfuzz>=3.9",
"faker>=26",
"python-multipart>=0.0.9",
"itsdangerous>=2.2",
]
[dependency-groups]
dev = [
"pytest>=8.2",
"httpx>=0.27",
"ruff>=0.5",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app"]
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["alembic/versions"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "N"]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["app", "tests"]
# La carpeta alembic/ (migraciones) comparte nombre con el paquete: forzar third-party.
known-third-party = ["alembic"]
[tool.ruff.format]
quote-style = "double"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
pythonpath = ["."]
filterwarnings = [
"error::DeprecationWarning:app",
# Starlette >=1.7 prefiere httpx2; el brief fija httpx. Revisar al subir de versión.
"ignore:Using `httpx` with `starlette.testclient` is deprecated",
]