Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Guts committed Mar 2, 2023
1 parent db64d61 commit c13c3f7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
f'<meta property="twitter:title" content="{project}" />',
]


# -- Options for Sphinx API doc ----------------------------------------------
# run api doc
def run_apidoc(_):
Expand Down
2 changes: 0 additions & 2 deletions qgis_deployment_toolbelt/jobs/job_splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions qgis_deployment_toolbelt/profiles/shortcuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c13c3f7

Please sign in to comment.