- Consistently format multi-line function headers, exception handling, and repository method calls for readability. - Reorganize misplaced imports across modules (e.g., services & tests) into proper sorted order. - Adjust indentation, line breaks, and spacing inconsistencies in tests and migration files. - Cleanup unnecessary trailing newlines and reorganize `__all__` declarations for consistency.
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
# app/repositories/__init__.py
|
|
"""Repository layer — all database access goes through these classes."""
|
|
|
|
from app.repositories.oauth_account import OAuthAccountRepository, oauth_account_repo
|
|
from app.repositories.oauth_authorization_code import (
|
|
OAuthAuthorizationCodeRepository,
|
|
oauth_authorization_code_repo,
|
|
)
|
|
from app.repositories.oauth_client import OAuthClientRepository, oauth_client_repo
|
|
from app.repositories.oauth_consent import OAuthConsentRepository, oauth_consent_repo
|
|
from app.repositories.oauth_provider_token import (
|
|
OAuthProviderTokenRepository,
|
|
oauth_provider_token_repo,
|
|
)
|
|
from app.repositories.oauth_state import OAuthStateRepository, oauth_state_repo
|
|
from app.repositories.organization import OrganizationRepository, organization_repo
|
|
from app.repositories.session import SessionRepository, session_repo
|
|
from app.repositories.user import UserRepository, user_repo
|
|
|
|
__all__ = [
|
|
"OAuthAccountRepository",
|
|
"OAuthAuthorizationCodeRepository",
|
|
"OAuthClientRepository",
|
|
"OAuthConsentRepository",
|
|
"OAuthProviderTokenRepository",
|
|
"OAuthStateRepository",
|
|
"OrganizationRepository",
|
|
"SessionRepository",
|
|
"UserRepository",
|
|
"oauth_account_repo",
|
|
"oauth_authorization_code_repo",
|
|
"oauth_client_repo",
|
|
"oauth_consent_repo",
|
|
"oauth_provider_token_repo",
|
|
"oauth_state_repo",
|
|
"organization_repo",
|
|
"session_repo",
|
|
"user_repo",
|
|
]
|