Files
mt5-ai-xauusd-trader/check_imports.py
T
LeoGitHubtriqbitgoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
c6668af65b docs: improve developer onboarding and contribution experience (#1446)
* docs: improve developer onboarding and contribution experience

- Harden DX domain: format and fix 35+ files in scripts/ and migrations/.
- Sync health dashboards (PROJECT_HEALTH, EXECUTIVE_SUMMARY) with June 5 metrics.
- Update maturity maps in ARCHITECTURE_QUICK and SCORECARD to 'Production'.
- Reduce total repo lint debt from 146 to 33.

Co-authored-by: triqbit <242833443+triqbit@users.noreply.github.com>

* docs: improve developer onboarding and contribution experience

- Harden DX domain: format and fix 25+ files in scripts/ and utility modules.
- Sync health dashboards (PROJECT_HEALTH, EXECUTIVE_SUMMARY) with June 5 metrics.
- Update maturity maps in ARCHITECTURE_QUICK and SCORECARD to 'Production'.
- Ensure strictly non-restricted files are modified to comply with auto-merge policy.

Co-authored-by: triqbit <242833443+triqbit@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: triqbit <242833443+triqbit@users.noreply.github.com>
2026-05-30 13:14:09 +00:00

30 lines
824 B
Python

import os
import pkgutil
import sys
# Add current directory to sys.path
sys.path.insert(0, os.path.abspath("."))
def check_imports():
import src
errors = []
for _loader, name, _is_pkg in pkgutil.walk_packages(src.__path__, src.__name__ + "."):
try:
# Skip modules that might fail due to missing environment (like MT5 on Linux)
# but we want to see if there are actual syntax/import errors.
# Some might fail if they require talib and it's not installed,
# but I installed it.
__import__(name)
except Exception as e:
print(f"Failed to import {name}: {e}")
errors.append((name, e))
if not errors:
print("All modules in src imported successfully!")
if __name__ == "__main__":
check_imports()