Critical Patterns
Get Reports Backend Module
Use this function to retrieve the backend module for reports.
from eval.scenarios_real import get_reports_backend_module
reports_backend = get_reports_backend_module()
Get Auth Backend Module
Utilize this function to access the authentication backend module.
from eval.scenarios_real import get_auth_backend_module
auth_backend = get_auth_backend_module()
When to Use
- When you need to implement reporting features in the scenarios_real module.
- When integrating user authentication in the scenarios_real context.
- To debug issues related to backend module retrieval.
Commands
python -m repoforge.cli skills
python -m repoforge.cli docs
Anti-Patterns
Don't: Hardcode Module Paths
Hardcoding paths can lead to maintenance issues and reduce code portability.
# BAD
from eval.scenarios_real import get_reports_backend_module as reports_backend
reports_backend = sys.path[0] + "/eval/scenarios_real/reports_backend"
Quick Reference
| Task | Pattern |
|---|---|
| Retrieve reports backend | get_reports_backend_module() |
| Access auth backend | get_auth_backend_module() |