Skip to content

Commit 2b11f11

Browse files
committed
fix: resolve flake8 lint errors in notebook module
1 parent 341a2f6 commit 2b11f11

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

investing_algorithm_framework/notebook/magic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
%load_ext investing_algorithm_framework
77
88
# Cell magic — define and run a backtest inline
9-
%%backtest --start 2023-01-01 --end 2023-12-31 --initial-amount 10000 -o results
9+
%%backtest --start 2023-01-01 --end 2023-12-31 \
10+
--initial-amount 10000 -o results
1011
from investing_algorithm_framework import TradingStrategy, DataSource
1112
1213
class MyStrategy(TradingStrategy):
@@ -25,14 +26,14 @@ def run_strategy(self, context, data):
2526
...
2627
2728
# Line magic — run a strategy from an existing file
28-
%backtest strategies/my_strategy.py --start 2023-01-01 --end 2023-12-31 -o results
29+
%backtest strategies/my_strategy.py \
30+
--start 2023-01-01 --end 2023-12-31 -o results
2931
"""
3032

3133
import argparse
3234
import os
3335
import shlex
3436
import sys
35-
import textwrap
3637
from datetime import datetime, timezone
3738
from pathlib import Path
3839

tests/notebook/test_magic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from unittest import TestCase
32
from unittest.mock import MagicMock
43

0 commit comments

Comments
 (0)