diff --git a/investing_algorithm_framework/cli/mcp_server.py b/investing_algorithm_framework/cli/mcp_server.py index fc269520..513c5a75 100644 --- a/investing_algorithm_framework/cli/mcp_server.py +++ b/investing_algorithm_framework/cli/mcp_server.py @@ -1907,7 +1907,8 @@ def _get_tools(self): "description": ( "Metric name, e.g. sharpe_ratio, " "cagr, max_drawdown, win_rate, " - "consistency_score, stability_score" + "consistency_score, " # noqa + "stability_score" ), }, "operator": { diff --git a/investing_algorithm_framework/infrastructure/services/backtesting/vector_backtest_service.py b/investing_algorithm_framework/infrastructure/services/backtesting/vector_backtest_service.py index 43b14f93..0c16f0af 100644 --- a/investing_algorithm_framework/infrastructure/services/backtesting/vector_backtest_service.py +++ b/investing_algorithm_framework/infrastructure/services/backtesting/vector_backtest_service.py @@ -332,8 +332,10 @@ def _close_trade(sym, sym_data, price, date): sym_data['entry_count'] = 0 sym_data['scale_out_count'] = 0 - def _open_trade(sym, sym_data, price, date, capital, - order_reason="buy_signal"): + def _open_trade( + sym, sym_data, price, date, capital, + order_reason="buy_signal" + ): """Helper to open a new trade for a symbol.""" nonlocal current_unallocated, total_allocated