1717if str (SCRIPT_DIR ) not in sys .path :
1818 sys .path .insert (0 , str (SCRIPT_DIR ))
1919
20- import backtest_growth_pullback_suite as gp
21- import backtest_growth_pullback_v1_2_geometry_repair as v12
22- import backtest_stock_alpha_suite as suite
23- import backtest_stock_alpha_v1_1_spec_lock as v11
24- import backtest_stock_alpha_v1_robustness as robust
20+ import backtest_growth_pullback_suite as gp # noqa: E402
21+ import backtest_growth_pullback_v1_2_geometry_repair as v12 # noqa: E402
22+ import backtest_stock_alpha_suite as suite # noqa: E402
23+ import backtest_stock_alpha_v1_robustness as robust # noqa: E402
2524
2625
2726DEFAULT_RESULTS_DIR = SCRIPT_DIR / "results"
@@ -913,7 +912,7 @@ def write_summary_markdown(
913912 f"- sector_cap={ float (baseline_payload ['sector_cap' ]):.0%} " ,
914913 f"- hold_bonus={ float (baseline_payload ['hold_bonus' ]):.2f} " ,
915914 f"- benchmark={ baseline_payload ['benchmark_symbol' ]} " ,
916- f "- non-rebalance days=no-op baseline; overlay only changes exposure / existing-name weights / BOXX" ,
915+ "- non-rebalance days=no-op baseline; overlay only changes exposure / existing-name weights / BOXX" ,
917916 "" ,
918917 "## Overlay families tested" ,
919918 "- daily_portfolio_throttle_overlay" ,
@@ -1030,7 +1029,6 @@ def main() -> None:
10301029 best_portfolio_row = family_scores .loc [family_scores ["family" ] == "daily_portfolio_throttle_overlay" ].iloc [0 ]
10311030 best_name_row = family_scores .loc [family_scores ["family" ] == "daily_name_level_trim_overlay" ].iloc [0 ]
10321031
1033- combo_rows : pd .DataFrame | None = None
10341032 combo_candidate : OverlayStrategyConfig | None = None
10351033 if overlay_has_incremental_value (best_portfolio_row , baseline_oos_row ) and overlay_has_incremental_value (best_name_row , baseline_oos_row ):
10361034 portfolio_cfg = next (candidate for candidate in portfolio_candidates if candidate .name == str (best_portfolio_row ["strategy" ]))
@@ -1041,7 +1039,6 @@ def main() -> None:
10411039 combo_candidate_rows = candidate_rows_from_artifacts (combo_candidate .name , combo_candidate .family , combo_artifacts , benchmark_returns , cost_bps_values = COST_LEVELS )
10421040 all_rows_df = pd .concat ([all_rows_df , pd .DataFrame (combo_candidate_rows )], ignore_index = True )
10431041 family_scores = build_family_selection_table (all_rows_df , oos_benchmark_cagr = qqq_oos_cagr )
1044- combo_rows = family_scores .loc [family_scores ["strategy" ] == combo_candidate .name ].copy ()
10451042
10461043 # qqq_plus_current_default reference
10471044 qqq_rows = build_reference_rows_from_existing_results (
0 commit comments