diff --git a/src/antares_web_installer/gui/controller.py b/src/antares_web_installer/gui/controller.py index 10f225b..41b36ee 100644 --- a/src/antares_web_installer/gui/controller.py +++ b/src/antares_web_installer/gui/controller.py @@ -24,7 +24,6 @@ def run_installation(app: App) -> None: logger.exception(f"An error occurred during installation: {e}") - class WizardController(Controller): """ Must intercept all logic errors. @@ -60,7 +59,7 @@ def init_view(self) -> "WizardView": return WizardView(self) def init_file_handler(self): - self.log_dir : Path = self.model.target_dir / "logs" + self.log_dir: Path = self.model.target_dir / "logs" tmp_file_name = "wizard.log" if not self.log_dir.exists(): diff --git a/src/antares_web_installer/gui/mvc.py b/src/antares_web_installer/gui/mvc.py index f858f04..8d3455a 100644 --- a/src/antares_web_installer/gui/mvc.py +++ b/src/antares_web_installer/gui/mvc.py @@ -41,7 +41,7 @@ def __init__(self, controller: Controller): def show_error(self, *args): err = traceback.format_exception(*args) - messagebox.showerror('Exception', "".join(err)) + messagebox.showerror("Exception", "".join(err)) class ControllerError(Exception): diff --git a/src/antares_web_installer/shortcuts/_win32_shell.py b/src/antares_web_installer/shortcuts/_win32_shell.py index b1c5ec4..e146b6a 100644 --- a/src/antares_web_installer/shortcuts/_win32_shell.py +++ b/src/antares_web_installer/shortcuts/_win32_shell.py @@ -59,7 +59,6 @@ def create_shortcut( icon_path: t.Union[str, os.PathLike] = "", description: str = "", ) -> None: - working_dir = working_dir or get_homedir() if isinstance(arguments, str): @@ -77,4 +76,3 @@ def create_shortcut( if icon_path: wscript.IconLocation = str(icon_path) wscript.save() - diff --git a/tests/config/test_config_2_18.py b/tests/config/test_config_2_18.py index c375103..c6a1201 100644 --- a/tests/config/test_config_2_18.py +++ b/tests/config/test_config_2_18.py @@ -6,7 +6,7 @@ def test_update_to_2_18(datadir: Path) -> None: - config = yaml.safe_load(datadir.joinpath(f"application-2.17.yaml").read_text()) - expected = yaml.safe_load(datadir.joinpath(f"application-2.18.yaml").read_text()) + config = yaml.safe_load(datadir.joinpath("application-2.17.yaml").read_text()) + expected = yaml.safe_load(datadir.joinpath("application-2.18.yaml").read_text()) update_to_2_18(config) assert config == expected