Skip to content

Conversation

@CarterPerez-dev
Copy link
Owner

No description provided.

- Restructured to DDD domains (user/, auth/, admin/, core/)
- Renamed src/ → app/ to match FastAPI conventions
- Removed all src.* import prefixes
- Converted services to DI pattern (removed @staticmethod)
- Created dependencies.py in each domain for service injection
- Updated all routes to inject services via Depends()
- Kept capital letter model naming (User.py, RefreshToken.py)
- Updated Docker, alembic, and test files
- Set PYTHONPATH=/app/app for clean imports

Import style:
- Relative within domain: from .User import User
- No prefix for core: from core.database import ...
- Domain name for cross-domain: from user.repository import ...
@github-actions
Copy link

Lint & Type Check Results

Pylint: Issues Found

View pylint output
/home/runner/work/_temp/f840196e-5ec0-44f0-81a9-af9081215baa.sh: line 2: pylint: command not found

Ruff: Passed

No ruff issues found.

Mypy: Issues Found

View mypy output
core/dependencies.py: error: Source file found twice under different module names: "app.core.dependencies" and "core.dependencies"
Found 1 error in 1 file (errors prevented further checking)

Review the issues above and consider fixing them.

@CarterPerez-dev CarterPerez-dev merged commit af9e4ad into main Dec 16, 2025
2 checks passed
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.

2 participants