address some flake8 errors

This commit is contained in:
Mike Salvatore 2021-02-10 14:13:39 -05:00
parent 5b781c50a4
commit e6bf085d12
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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):