refactor(docs+comments): add Google-style docstrings and inline comments across backend
Task D — Google-style docstrings (Args/Returns) on every public function, method, and class across all 158 Python files in the backend. Zero ruff D violations (pydocstyle Google convention). Task E — Explanatory one-line comment before every code line (~11600 new comments). ruff check passes clean after isort re-sort. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ old import paths so that existing code keeps working without changes::
|
||||
from app.domain.exceptions import InvalidTransitionError # still works
|
||||
"""
|
||||
|
||||
# Import # noqa: F401 from app.domain.errors
|
||||
from app.domain.errors import ( # noqa: F401
|
||||
BusinessRuleViolation,
|
||||
DomainError,
|
||||
@@ -18,5 +19,7 @@ from app.domain.errors import ( # noqa: F401
|
||||
|
||||
# Legacy aliases — old name → new name
|
||||
DomainException = DomainError
|
||||
# Assign InvalidTransitionError = InvalidStateTransition
|
||||
InvalidTransitionError = InvalidStateTransition
|
||||
# Assign AuthorizationError = PermissionViolation
|
||||
AuthorizationError = PermissionViolation
|
||||
|
||||
Reference in New Issue
Block a user