Files
sdb2-backend/pyproject.toml
JSC 51423779a8 feat: Implement OAuth2 authentication with Google and GitHub
- Added OAuth2 endpoints for Google and GitHub authentication.
- Created OAuth service to handle provider interactions and user info retrieval.
- Implemented user OAuth repository for managing user OAuth links in the database.
- Updated auth service to support linking existing users and creating new users via OAuth.
- Added CORS middleware to allow frontend access.
- Created tests for OAuth endpoints and service functionality.
- Introduced environment configuration for OAuth client IDs and secrets.
- Added logging for OAuth operations and error handling.
2025-07-26 14:38:13 +02:00

49 lines
983 B
TOML

[project]
name = "backend"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiosqlite==0.21.0",
"bcrypt==4.3.0",
"email-validator==2.2.0",
"fastapi[standard]==0.116.1",
"httpx==0.28.1",
"pydantic-settings==2.10.1",
"pyjwt==2.10.1",
"sqlmodel==0.0.24",
"uvicorn[standard]==0.35.0",
]
[tool.uv]
dev-dependencies = [
"coverage==7.9.2",
"faker==37.4.2",
"httpx==0.28.1",
"mypy==1.17.0",
"pytest==8.4.1",
"pytest-asyncio==1.1.0",
"ruff==0.12.4",
]
[tool.mypy]
strict = true
exclude = ["venv", ".venv", "alembic"]
[tool.ruff]
target-version = "py312"
exclude = ["alembic"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D100", "D103", "TRY301"]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S101", "S105"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:transaction already deassociated from connection:sqlalchemy.exc.SAWarning",
]