From d02b86279d83e3c4aa9edd97ac1a2bd68f57d400 Mon Sep 17 00:00:00 2001 From: J-Doiron <139803019+J-Doiron@users.noreply.github.com> Date: Wed, 24 Sep 2025 15:54:09 -0700 Subject: [PATCH] Satisfying linter hopefully --- aots-e/aotse.py | 2 +- aots-e/aotse_utils.py | 10 +++++----- cities_skylines_2/citiesskylines2.py | 2 +- stellaris/stellaris.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/aots-e/aotse.py b/aots-e/aotse.py index ea2295d..13bf0e1 100644 --- a/aots-e/aotse.py +++ b/aots-e/aotse.py @@ -12,7 +12,7 @@ PARENT_DIR = str(Path(sys.path[0], "..")) sys.path.append(PARENT_DIR) from harness_utils.keras_service import KerasService -from harness_utils.steam import get_app_install_location, get_build_id, exec_steam_game +from harness_utils.steam import get_build_id, exec_steam_game from harness_utils.output import ( DEFAULT_DATE_FORMAT, DEFAULT_LOGGING_FORMAT, diff --git a/aots-e/aotse_utils.py b/aots-e/aotse_utils.py index 674cd9d..b2a32a3 100644 --- a/aots-e/aotse_utils.py +++ b/aots-e/aotse_utils.py @@ -132,11 +132,11 @@ def replace_exe(): if not os.path.exists(check_backup): os.rename(launcher_exe, check_backup) shutil.copy(dx12_exe, launcher_exe) - logging.info(f"Replacing launcher file in {EXE_PATH}") + logging.info("Replacing launcher file in %s", EXE_PATH) elif os.path.exists(check_backup): if not os.path.exists(launcher_exe): shutil.copy(dx12_exe, launcher_exe) - logging.info(f"Replacing launcher file in {EXE_PATH}") + logging.info("Replacing launcher file in %s", EXE_PATH) else: logging.info("Launcher already replaced with DX12 exe.") @@ -146,12 +146,12 @@ def restore_exe(): check_backup = Path(f"{EXE_PATH}\\StardockLauncher_launcher.exe") launcher_exe = Path(f"{EXE_PATH}\\StardockLauncher.exe") if not os.path.exists(check_backup): - logging.info(f"Launcher already restored or file does not exist.") + logging.info("Launcher already restored or file does not exist.") elif os.path.exists(check_backup): if not os.path.exists(launcher_exe): os.rename(check_backup, launcher_exe) - logging.info(f"Restoring launcher file in {EXE_PATH}") + logging.info("Restoring launcher file in %s", EXE_PATH) else: os.remove(launcher_exe) os.rename(check_backup, launcher_exe) - logging.info(f"Restoring launcher file in {EXE_PATH}") + logging.info("Restoring launcher file in %s", EXE_PATH) diff --git a/cities_skylines_2/citiesskylines2.py b/cities_skylines_2/citiesskylines2.py index 83ebd48..e22b36c 100644 --- a/cities_skylines_2/citiesskylines2.py +++ b/cities_skylines_2/citiesskylines2.py @@ -30,7 +30,7 @@ LOG_DIR = SCRIPT_DIR.joinpath("run") PROCESS_NAME = "cities2.exe" STEAM_GAME_ID = 949230 top_left_keras = ScreenSplitConfig( - divide_method=ScreenShotDivideMethod.QUADRANT, + divide_method=ScreenShotDivideMethod.QUADRANT, quadrant=ScreenShotQuadrant.TOP_LEFT) launcher_files = [ diff --git a/stellaris/stellaris.py b/stellaris/stellaris.py index f126127..83e7dca 100644 --- a/stellaris/stellaris.py +++ b/stellaris/stellaris.py @@ -79,7 +79,7 @@ def run_benchmark(keras_host, keras_port): if not result: logging.info("Did not find the settings button. Is there something wrong on the screen?") sys.exit(1) - + gui.moveTo(result["x"], result["y"]) time.sleep(0.2) gui.mouseDown()