Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Sep 2, 2024
1 parent 56d28d4 commit 0997bfa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions qgis_deployment_toolbelt/jobs/job_qgis_installation_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def run_needed(self) -> bool:
return True

def get_installed_qgis_path(self) -> str | None:
"""Get list of installed qgis
"""Get list of installed QGIS executables.
Returns:
str | None : installed qgis path
Expand All @@ -152,7 +152,7 @@ def get_installed_qgis_path(self) -> str | None:
if len(found_versions) == 0:
return None

logger.debug(f"Found installed QGIS : {found_versions}")
logger.debug(f"Found installed QGIS: {found_versions}")
latest_version = self._get_latest_version_from_list(
versions=list(found_versions.keys())
)
Expand Down Expand Up @@ -181,7 +181,7 @@ def get_installed_qgis_path(self) -> str | None:

@staticmethod
def _get_latest_version_from_list(versions: list[str]) -> str | None:
"""Get latest version from a list, OSGEO4W are last
"""Get latest version from a list, OSGEO4W are last.
Args:
versions (list[str]): list of found version
Expand All @@ -193,13 +193,14 @@ def _get_latest_version_from_list(versions: list[str]) -> str | None:
used_version = versions
used_version.sort(reverse=True)
return used_version[0]

return None

@staticmethod
def _get_latest_matching_version_path(
found_versions: dict[str, str], version: str
) -> str | None:
"""Get latest version path matching a wanted version
"""Get latest version path matching a wanted version.
Args:
found_versions (dict[str, str]): dict of found versions
Expand All @@ -221,7 +222,7 @@ def _get_latest_matching_version_path(

@staticmethod
def _get_qgis_bin_in_install_dir(install_dir: str) -> str | None:
"""Get QGIS binary path from an install directory
"""Get QGIS binary path from an install directory.
Args:
install_dir (str): install directory
Expand Down

0 comments on commit 0997bfa

Please sign in to comment.