Spaces:
Runtime error
Runtime error
Create core/init.py
Browse files- core/init.py +11 -0
core/init.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase A: empty __init__.py — no re-exports.
|
| 2 |
+
#
|
| 3 |
+
# Rationale (ARCH-P1-1):
|
| 4 |
+
# Re-exporting from subpackages causes tight coupling, import-time side
|
| 5 |
+
# effects (Settings singleton, structlog init), and future circular imports
|
| 6 |
+
# when more modules are added under core/.
|
| 7 |
+
#
|
| 8 |
+
# All imports must be explicit:
|
| 9 |
+
# from core.config.settings import get_settings
|
| 10 |
+
# from core.logging.logger import get_logger, setup_logging
|
| 11 |
+
# from core.security.validators import validate_bot_token, validate_admin_id
|