diff --git a/monkey/monkey_island.py b/monkey/monkey_island.py index 8bc887d89..ec0545433 100644 --- a/monkey/monkey_island.py +++ b/monkey/monkey_island.py @@ -4,7 +4,6 @@ gevent_monkey.patch_all() import json # noqa: E402 -from monkey_island.cc.main import main # noqa: E402 from monkey_island.cc.consts import ( DEFAULT_SERVER_CONFIG_PATH, DEFAULT_LOGGER_CONFIG_PATH, @@ -55,6 +54,6 @@ if "__main__" == __name__: print(f"Error loading logging config: {ex}") exit(1) - from monkey_island.cc.main import main + from monkey_island.cc.main import main # noqa: E402 main(is_setup_only, server_config) diff --git a/monkey/monkey_island/cc/test_island_logger.py b/monkey/monkey_island/cc/test_island_logger.py index b5618a95c..050d5c7c5 100644 --- a/monkey/monkey_island/cc/test_island_logger.py +++ b/monkey/monkey_island/cc/test_island_logger.py @@ -4,8 +4,9 @@ import os from monkey_island.cc.consts import MONKEY_ISLAND_ABS_PATH from monkey_island.cc.island_logger import json_setup_logging -TEST_LOGGER_CONFIG_PATH = os.path.join(MONKEY_ISLAND_ABS_PATH, "cc", "testing", - "logger_config.json") +TEST_LOGGER_CONFIG_PATH = os.path.join( + MONKEY_ISLAND_ABS_PATH, "cc", "testing", "logger_config.json" +) def set_home_env(monkeypatch, tmpdir):