Files
webref/backend/pyproject.toml
Danilo Reyes 4a2f3f5fdc chore: update psycopg2 dependency in pyproject.toml
- Changed the dependency from `psycopg2-binary` to `psycopg2` in `pyproject.toml` for better compatibility and performance.
2025-11-02 00:47:17 -06:00

97 lines
2.1 KiB
TOML

[project]
name = "webref-backend"
version = "1.0.0"
description = "Reference Board Viewer - Backend API"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"sqlalchemy>=2.0.0",
"alembic>=1.13.0",
"pydantic>=2.9.0",
"pydantic-settings>=2.6.0",
"python-jose[cryptography]>=3.3.0",
"passlib[bcrypt]>=1.7.4",
"pillow>=11.0.0",
"boto3>=1.35.0",
"python-multipart>=0.0.12",
"httpx>=0.27.0",
"psycopg2>=2.9.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"pytest-cov>=6.0.0",
"pytest-asyncio>=0.24.0",
"ruff>=0.7.0",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["app"]
[tool.setuptools.package-data]
app = ["py.typed"]
[tool.ruff]
# Exclude common paths
exclude = [
".git",
".ruff_cache",
".venv",
"__pycache__",
"alembic/versions",
]
# Line length (slightly longer for SQLAlchemy models)
line-length = 120
# Target Python 3.12
target-version = "py312"
[tool.ruff.lint]
# Enable pycodestyle (`E`), Pyflakes (`F`), isort (`I`)
select = ["E", "F", "I", "W", "N", "UP", "B", "C4", "SIM"]
ignore = [
"B008", # Allow Depends() in FastAPI function defaults
"N818", # Allow WebRefException without Error suffix
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"tests/*" = ["S101"] # Allow assert in tests
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = [
"--strict-markers",
"--tb=short",
"--cov=app",
"--cov-report=term-missing",
"--cov-report=html",
# Temporarily disabled until tests are written (Phase 3 deferred T045-T047)
# Will re-enable in Phase 23 (Testing & QA)
# "--cov-fail-under=80",
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["app"]
omit = ["tests/*", "alembic/*"]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false