- Add AI code generation requirements to AGENTS.md - Add module-level docstrings to all 46 Python modules - Add detailed Google-style docstrings to all classes and functions - Remove all inline comments following self-documenting code principle - Include Args, Returns, Raises sections in function docstrings - Add Attributes and Examples sections to class docstrings
35 lines
801 B
Python
35 lines
801 B
Python
"""Infrastructure layer exports.
|
|
|
|
This module re-exports all infrastructure components including
|
|
config, database, repositories, DI, and middleware.
|
|
"""
|
|
|
|
from app.infrastructure.config import Settings, settings
|
|
from app.infrastructure.database import (
|
|
AsyncSessionLocal,
|
|
Base,
|
|
PostORM,
|
|
close_db,
|
|
engine,
|
|
get_session,
|
|
init_db,
|
|
)
|
|
from app.infrastructure.di import create_container
|
|
from app.infrastructure.middleware import register_exception_handlers
|
|
from app.infrastructure.repositories import SQLAlchemyPostRepository
|
|
|
|
__all__ = [
|
|
"Settings",
|
|
"settings",
|
|
"Base",
|
|
"PostORM",
|
|
"engine",
|
|
"AsyncSessionLocal",
|
|
"get_session",
|
|
"init_db",
|
|
"close_db",
|
|
"SQLAlchemyPostRepository",
|
|
"create_container",
|
|
"register_exception_handlers",
|
|
]
|