Skip to content

refactor: move mixins.py from shared/ to src root#109

Merged
Besthope-Official merged 1 commit into
mainfrom
refactor/move-mixins-to-root
Feb 2, 2026
Merged

refactor: move mixins.py from shared/ to src root#109
Besthope-Official merged 1 commit into
mainfrom
refactor/move-mixins-to-root

Conversation

@Besthope-Official
Copy link
Copy Markdown
Contributor

Related Issue

Closes #108

Summary of Changes

Moved src/shared/mixins.py to src/mixins.py to align infrastructure utilities with existing pattern at src root.

Changes:

  • Moved src/shared/mixins.pysrc/mixins.py
  • Updated imports in src/auth/models.py, src/audit/schemas.py, tests/shared/test_mixins.py
  • Removed TimestampMixin export from src/shared/__init__.py

Result:

  • src/shared/ now contains only cross-domain business utilities (errors.py, redis_keys.py)
  • Infrastructure utilities at src root: exceptions.py, handlers.py, logging.py, retry.py, session.py, mixins.py

Breaking Changes

Import path changed: from src.shared.mixins import TimestampMixinfrom src.mixins import TimestampMixin

Checklist

  • Issue discussion completed before opening PR
  • Scope is small and focused (single feature/fix)
  • All functions have full type annotations
  • Async/await used for all I/O operations
  • Tests added for new behaviors

Move infrastructure utilities (TimestampMixin, timezone helpers) from
src/shared/ to src/ to align with existing infrastructure pattern.

src/shared/ now contains only cross-domain business utilities:
- errors.py: Business error codes
- redis_keys.py: Business cache key patterns

Closes #108

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Besthope-Official Besthope-Official merged commit e670847 into main Feb 2, 2026
3 checks passed
@Besthope-Official Besthope-Official deleted the refactor/move-mixins-to-root branch February 2, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: move mixins.py from shared/ to src root

1 participant