From 865bb6f7dfc57b841129aa3442ffc938e67bd41c Mon Sep 17 00:00:00 2001 From: Hans Fangohr <hans.fangohr@mpsd.mpg.de> Date: Fri, 26 May 2023 18:05:18 +0200 Subject: [PATCH] tidy up from black --- mpsd-software-environment.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mpsd-software-environment.py b/mpsd-software-environment.py index 510aee7..0b8ca74 100755 --- a/mpsd-software-environment.py +++ b/mpsd-software-environment.py @@ -120,7 +120,7 @@ def setup_log_cmd( def create_dir_structure(mpsd_release: str, script_dir: Path) -> None: """ Create the directory structure and clone spack environments repo. - + The create_dir_structure function creates the directory structure for the specified release and clones the Spack environments repository if it doesn't exist. @@ -171,16 +171,16 @@ def get_release_info(mpsd_release: str, script_dir: Path) -> Tuple[str, str, Lis Args ---- - mpsd_release : str + mpsd_release : str the name of the release to get information for. - script_dir : pathlib.Path + script_dir : pathlib.Path the base directory where releases are stored. Returns ------- - spe_branch : str + spe_branch : str the name of the branch for the Spack environments repository. - spe_commit_hash : str + spe_commit_hash : str the commit hash for the Spack environments repository. available_toolchains : list a list of strings representing the available @@ -188,7 +188,7 @@ def get_release_info(mpsd_release: str, script_dir: Path) -> Tuple[str, str, Lis Raises ------ - Exception : + Exception : If the release directory does not exist. Run `create_dir_structure()` first. """ @@ -219,7 +219,7 @@ def get_release_info(mpsd_release: str, script_dir: Path) -> Tuple[str, str, Lis def prepare_environment(mpsd_release: str, script_dir: Path) -> List[str]: """ - Creates + Creates - Creates the directory structure for the given MPSD release and clones the spack-environments repository. - Determines the branch and commit hash of the spack-environments repository and -- GitLab