Code Quality¶
This section documents code quality practices and tools used in the Payment Gateway component.
Contents¶
- Model Brokers: SQL Model Brokers pattern for centralized database access
- Nullable Pattern: Testing without mocks using test doubles and real database
- Code Offenses: Current code offenses and technical debt tracking
Overview¶
The Payment Gateway aims at high code quality standards through:
- Standardized data access: Model Brokers centralize all database queries
- Comprehensive testing: Database-backed tests with factories, mock-free integration testing
- Performance safeguards: N+1 query detection, lazy loading prevention
- Type safety: Full type hints with MyPy checking