mirror of
https://github.com/triqbit/mt5-ai-xauusd-trader.git
synced 2026-11-02 06:56:15 +00:00
Merge remote-tracking branch 'origin/jules02-cli-ux-improvements-8438108481486765359'
# Conflicts: # .github/workflows/ci.yml # .github/workflows/pre-deploy-validation.yml # benchmark_performance.py # scripts/doctor.py # tests/test_data_cleanup_system.py # tests/test_decision_support_v2.py # tests/test_ensemble_drift_safety.py # tests/test_ensemble_new.py # tests/test_jules_ensemble_safety_v2.py # tests/test_performance_instrumentation.py # tests/verify_integration.py
This commit is contained in:
@@ -22,9 +22,10 @@ def get_required_vars_from_config():
|
||||
if isinstance(item, ast.AnnAssign) and isinstance(item.target, ast.Name):
|
||||
var_name = item.target.id
|
||||
if var_name != "model_config":
|
||||
required_vars.add(var_name.lower())
|
||||
required_vars.add(var_name.lower())
|
||||
return required_vars
|
||||
|
||||
|
||||
def get_vars_from_example():
|
||||
example_path = Path(".env.example")
|
||||
if not example_path.exists():
|
||||
@@ -40,6 +41,7 @@ def get_vars_from_example():
|
||||
vars.add(var.lower())
|
||||
return vars
|
||||
|
||||
|
||||
def validate():
|
||||
print("Validating environment configuration template...")
|
||||
|
||||
@@ -67,9 +69,12 @@ def validate():
|
||||
print("=" * 60)
|
||||
return False
|
||||
|
||||
print(f"SUCCESS: Environment validation passed. .env.example contains all {len(required)} fields.")
|
||||
print(
|
||||
f"SUCCESS: Environment validation passed. .env.example contains all {len(required)} fields."
|
||||
)
|
||||
return True
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if not validate():
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user