57 lines
1.5 KiB
TOML
57 lines
1.5 KiB
TOML
[project]
|
|
name = "pharma-field-force"
|
|
version = "0.1.0"
|
|
description = "Pharmaceutical field-force reporting system — MVP (one MR, DCR, AM review, GM approval, PDF, audit)"
|
|
requires-python = ">=3.11"
|
|
|
|
dependencies = [
|
|
"fastapi>=0.115.0",
|
|
"tzdata>=2024.1",
|
|
"uvicorn[standard]>=0.32.0",
|
|
"sqlalchemy[asyncio]>=2.0.36",
|
|
"asyncpg>=0.30.0",
|
|
"psycopg[binary]>=3.2.3",
|
|
"alembic>=1.14.0",
|
|
"pydantic[email]>=2.9.0",
|
|
"pydantic-settings>=2.6.0",
|
|
"python-jose[cryptography]>=3.3.0",
|
|
"argon2-cffi>=23.1.0",
|
|
"python-multipart>=0.0.12",
|
|
"jinja2>=3.1.4",
|
|
"weasyprint>=63.0",
|
|
]
|
|
|
|
# The repository contains a React application (`web/`) and Alembic migration
|
|
# files alongside the Python application. Explicit discovery prevents
|
|
# setuptools from treating those folders as Python distribution packages.
|
|
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["app*"]
|
|
exclude = ["alembic*", "scripts*", "tests*", "web*"]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.3.0",
|
|
"pytest-asyncio>=0.24.0",
|
|
"httpx>=0.27.0",
|
|
"ruff>=0.7.0",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "session"
|
|
asyncio_default_test_loop_scope = "session"
|
|
testpaths = ["tests"]
|
|
filterwarnings = ["ignore::DeprecationWarning"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
ignore = ["B008"] # FastAPI Depends() in defaults is idiomatic
|