Skip to content

Commit bd9309c

Browse files
committed
Fix flake8 warnings
1 parent 6e3baf2 commit bd9309c

File tree

2 files changed

+7
-149
lines changed

2 files changed

+7
-149
lines changed

investing_algorithm_framework/cli/intialize_app.py

-144
This file was deleted.

investing_algorithm_framework/services/backtesting/backtest_service.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,9 @@ def save_report(
703703
Function to save the backtest report to a file. If the
704704
`save_in_memory_strategies` flag is set to True, the function
705705
tries to get the strategy class defintion that are loaded in
706-
memory and save them to the output directory(this is usefull when experimenting in notebooks). Otherwise, it copies the
707-
strategy directory to the output directory.
706+
memory and save them to the output directory(this is usefull
707+
when experimenting in notebooks). Otherwise, it copies
708+
the strategy directory to the output directory.
708709
709710
Args:
710711
report: BacktestReport - The backtest report to save
@@ -749,7 +750,7 @@ def save_report(
749750
)
750751

751752
if not os.path.exists(strategy_directory) or \
752-
not os.path.isdir(strategy_directory):
753+
not os.path.isdir(strategy_directory):
753754
raise OperationalException(
754755
"Default strategy directory 'strategies' does "
755756
"not exist. If you have your strategies placed in "
@@ -761,7 +762,7 @@ def save_report(
761762

762763
# Check if the strategy directory exists
763764
if not os.path.exists(strategy_directory) or \
764-
not os.path.isdir(strategy_directory):
765+
not os.path.isdir(strategy_directory):
765766
raise OperationalException(
766767
f"Strategy directory {strategy_directory} "
767768
"does not "
@@ -925,7 +926,8 @@ def _save_strategy_class(self, strategy, output_directory):
925926
collected_imports.append(" ".join(current_import))
926927

927928
# Capture class definitions and functions
928-
if stripped_line.startswith("class ") or stripped_line.startswith("def "):
929+
if stripped_line.startswith("class ") \
930+
or stripped_line.startswith("def "):
929931
class_started = True
930932

931933
if class_started:

0 commit comments

Comments
 (0)