Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Oct 1, 2024
1 parent ce1b009 commit d9ed773
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/antares_web_installer/gui/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion src/antares_web_installer/gui/mvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 0 additions & 2 deletions src/antares_web_installer/shortcuts/_win32_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -77,4 +76,3 @@ def create_shortcut(
if icon_path:
wscript.IconLocation = str(icon_path)
wscript.save()

4 changes: 2 additions & 2 deletions tests/config/test_config_2_18.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9ed773

Please sign in to comment.