feat: implement GraphQL member management API
Implement complete member management system with GraphQL API per OpenSpec proposal. Only firstName is required; all other fields are optional with conditional validation. Key features: - GraphQL CRUD operations (create, read, update, delete members) - SQLAlchemy 2.0 async with SQLite database - Alembic database migrations - Conditional validation (email/phone validated only when provided) - Member fields: firstName (required), lastName, address, email, phone (all optional) - Database seed script with sample member - FastAPI with Strawberry GraphQL integration Implementation details: - Python 3.11+ with uv package manager - Async database sessions throughout - Proper error handling and validation - Code quality: black, isort, ruff - Comprehensive end-to-end testing completed All 20 tasks from OpenSpec proposal completed successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
[project]
|
||||
name = "clubber"
|
||||
version = "0.1.0"
|
||||
description = "Member management system for non-profit societies with GraphQL API"
|
||||
requires-python = ">=3.11"
|
||||
authors = [
|
||||
{ name = "Clubber Team" }
|
||||
]
|
||||
license = { text = "MIT" }
|
||||
dependencies = [
|
||||
"aiosqlite>=0.21.0",
|
||||
"alembic>=1.17.2",
|
||||
"fastapi>=0.121.3",
|
||||
"pydantic-settings>=2.12.0",
|
||||
"sqlalchemy[asyncio]>=2.0.44",
|
||||
"strawberry-graphql[fastapi]>=0.286.0",
|
||||
"uvicorn[standard]>=0.38.0",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"black>=25.11.0",
|
||||
"isort>=7.0.0",
|
||||
"pytest>=9.0.1",
|
||||
"pytest-asyncio>=1.3.0",
|
||||
"ruff>=0.14.5",
|
||||
]
|
||||
|
||||
[tool.black]
|
||||
line-length = 88
|
||||
target-version = ["py311"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 88
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "I"]
|
||||
ignore = ["E501"]
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
multi_line_output = 3
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
Reference in New Issue
Block a user