Skip to content

Commit

Permalink
Fix flake 8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MDUYN committed Jan 11, 2025
1 parent 47ffc41 commit ad6257b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion investing_algorithm_framework/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ def _initialize_app_for_backtest(
configuration_service.add_value(
DATABASE_DIRECTORY_PATH,
os.path.join(
configuration_service.config[RESOURCE_DIRECTORY], "backtest_databases"
configuration_service.config[
RESOURCE_DIRECTORY
],
"backtest_databases"
)
)

Expand Down
2 changes: 1 addition & 1 deletion investing_algorithm_framework/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from .app import App
from .dependency_container import setup_dependency_container
from .domain import APP_MODE, AppMode
from .domain import AppMode

logger = logging.getLogger("investing_algorithm_framework")

Expand Down
4 changes: 3 additions & 1 deletion tests/resources/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ class FlaskTestBase(FlaskTestCase):
def create_app(self):
self.resource_directory = os.path.dirname(__file__)
self.iaf_app: App = create_app(
{RESOURCE_DIRECTORY: self.resource_directory}, web=True
{
RESOURCE_DIRECTORY: self.resource_directory
}
)
self.market_service.balances = self.external_balances
self.market_service.orders = self.external_orders
Expand Down

0 comments on commit ad6257b

Please sign in to comment.