- 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
820 B
Python
35 lines
820 B
Python
"""Domain layer exports.
|
|
|
|
This module re-exports all domain layer components including
|
|
entities, value objects, repositories, and exceptions.
|
|
"""
|
|
|
|
from app.domain.entities import BaseEntity, Post
|
|
from app.domain.exceptions import (
|
|
AlreadyExistsException,
|
|
DomainException,
|
|
ForbiddenException,
|
|
NotFoundException,
|
|
UnauthorizedException,
|
|
ValidationException,
|
|
)
|
|
from app.domain.repositories import PostRepository, Repository
|
|
from app.domain.value_objects import Content, Slug, Title, ValueObject
|
|
|
|
__all__ = [
|
|
"BaseEntity",
|
|
"Post",
|
|
"ValueObject",
|
|
"Title",
|
|
"Content",
|
|
"Slug",
|
|
"Repository",
|
|
"PostRepository",
|
|
"DomainException",
|
|
"ValidationException",
|
|
"NotFoundException",
|
|
"AlreadyExistsException",
|
|
"UnauthorizedException",
|
|
"ForbiddenException",
|
|
]
|