Skip to content

Commit f31f48e

Browse files
committed
Fix flake8 warnings
1 parent 640b100 commit f31f48e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

investing_algorithm_framework/app/analysis/ranking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def compute_score(metrics, weights, ranges):
3434
if not hasattr(metrics, key):
3535
continue
3636
value = getattr(metrics, key)
37-
# Skip non-numeric values (e.g., Trade objects for best_trade/worst_trade)
37+
# Skip non-numeric values (e.g., Trade objects
38+
# for best_trade/worst_trade)
3839
if not isinstance(value, (int, float)):
3940
continue
4041
if value is None or math.isnan(value) or math.isinf(value):

investing_algorithm_framework/app/eventloop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def _run_iteration(
554554
data = {}
555555

556556
for on_strategy_run_hook in \
557-
self._algorithm.on_strategy_run_hooks:
557+
self._algorithm.on_strategy_run_hooks:
558558
on_strategy_run_hook.execute(
559559
strategy=strategy,
560560
context=self.context,

0 commit comments

Comments
 (0)