Skip to content

Commit

Permalink
style: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Jun 11, 2024
1 parent c295278 commit 9988a88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/antares_web_installer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path
from antares_web_installer.app import App, InstallError

RESOURCE_PATH = f"antares_web_installer.assets.data"
RESOURCE_PATH = "antares_web_installer.assets.data"

with resources.path(RESOURCE_PATH, os.name) as path:
if os.name == "posix":
Expand Down
2 changes: 1 addition & 1 deletion src/antares_web_installer/shortcuts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_shortcut(
)


if __name__ == '__main__':
if __name__ == "__main__":
print(f"{get_homedir()=}")
print(f"{get_desktop()=}")
print(f"{get_start_menu()=}")
17 changes: 9 additions & 8 deletions src/antares_web_installer/shortcuts/_linux_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ def get_start_menu() -> str:


def create_shortcut(
target: t.Union[str, os.PathLike],
exe_path: t.Union[str, os.PathLike],
*,
arguments: t.Union[str, t.Sequence[str]] = "",
working_dir: t.Union[str, os.PathLike] = "",
icon_path: t.Union[str, os.PathLike] = "",
description: str = "",
) -> None: ...
target: t.Union[str, os.PathLike],
exe_path: t.Union[str, os.PathLike],
*,
arguments: t.Union[str, t.Sequence[str]] = "",
working_dir: t.Union[str, os.PathLike] = "",
icon_path: t.Union[str, os.PathLike] = "",
description: str = "",
) -> None:
...
# fixme: implement this function
# raise NotImplementedError("TODO: create_shortcut")

0 comments on commit 9988a88

Please sign in to comment.