Files
sneakyklaus/pyproject.toml
Phil Skentelbery 8554f27d86 feat: implement exchange creation
Add Exchange model, API endpoint, and form validation
for creating new gift exchanges.

- Create ExchangeForm with timezone validation
- Add admin routes for creating and viewing exchanges
- Generate unique 12-char slug for each exchange
- Validate registration/exchange dates
- Display exchanges in dashboard
- All tests passing with 92% coverage

Story: 2.1
2025-12-22 12:41:28 -07:00

106 lines
2.0 KiB
TOML

[project]
name = "sneaky-klaus"
version = "0.1.0"
description = "A self-hosted Secret Santa organization application"
requires-python = ">=3.11"
dependencies = [
"flask>=3.0",
"flask-wtf>=1.2",
"flask-sqlalchemy>=3.0",
"flask-session>=0.8",
"flask-bcrypt>=1.0",
"gunicorn>=21.0",
"sqlalchemy>=2.0",
"alembic>=1.12",
"email-validator>=2.0",
"resend>=0.7",
"apscheduler>=3.10",
"pytz>=2023.3",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-flask>=1.2",
"ruff>=0.8.0",
"mypy>=1.13.0",
"pre-commit>=3.0",
"types-flask>=1.1",
"types-pytz>=2023.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = [
"--cov=src",
"--cov-report=term-missing",
"--cov-fail-under=80",
"-v",
]
[tool.coverage.run]
source = ["src"]
branch = true
omit = [
"*/tests/*",
"*/migrations/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-flask>=1.3.0",
"ruff>=0.14.10",
"types-flask>=1.1.6",
"types-pytz>=2025.2.0.20251108",
]