From c13c3f7d4e033c4780a7ca9f7263ae13775b2476 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Mar 2023 20:09:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 1 + qgis_deployment_toolbelt/jobs/job_splash_screen.py | 2 -- qgis_deployment_toolbelt/profiles/shortcuts.py | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 8bee429d..f09871f7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -169,6 +169,7 @@ f'', ] + # -- Options for Sphinx API doc ---------------------------------------------- # run api doc def run_apidoc(_): diff --git a/qgis_deployment_toolbelt/jobs/job_splash_screen.py b/qgis_deployment_toolbelt/jobs/job_splash_screen.py index 43a35c1f..7174bce9 100644 --- a/qgis_deployment_toolbelt/jobs/job_splash_screen.py +++ b/qgis_deployment_toolbelt/jobs/job_splash_screen.py @@ -95,7 +95,6 @@ def run(self) -> None: if self.options.get("action") in ("create", "create_or_restore"): for profile_dir in li_installed_profiles_path: - # default absolute splash screen path splash_screen_filepath = profile_dir / self.DEFAULT_SPLASH_FILEPATH @@ -173,7 +172,6 @@ def run(self) -> None: ) elif self.options.get("action") == "remove": for profile_dir in li_installed_profiles_path: - # default absolute splash screen path splash_screen_filepath = profile_dir / self.DEFAULT_SPLASH_FILEPATH diff --git a/qgis_deployment_toolbelt/profiles/shortcuts.py b/qgis_deployment_toolbelt/profiles/shortcuts.py index fb8d7a46..392752da 100644 --- a/qgis_deployment_toolbelt/profiles/shortcuts.py +++ b/qgis_deployment_toolbelt/profiles/shortcuts.py @@ -219,7 +219,6 @@ def check_icon_path(self, icon_path: Union[str, Path, None]) -> Union[Path, None ): return icon_path.resolve() else: - logger.warning(f"Icon does not exist: {icon_path}") return None @@ -277,7 +276,6 @@ def desktop_path(self) -> Path: return default_value else: - logger.warning( f"Unrecognized operating system ({opersys}) so path to the " f"user desktop is using a fallback value: {default_value}" @@ -373,7 +371,6 @@ def freedesktop_create(self) -> Tuple[Union[Path, None], Union[Path, None]]: # desktop shortcut if self.desktop: - self.desktop_path.mkdir(parents=True, exist_ok=True) # create shortcut