diff --git a/.github/workflows/validate_release_tag.py b/.github/workflows/validate_release_tag.py index 5efafac..ed1dd58 100644 --- a/.github/workflows/validate_release_tag.py +++ b/.github/workflows/validate_release_tag.py @@ -34,9 +34,9 @@ def get_version_from_module(content: str) -> str: parser = argparse.ArgumentParser() parser.add_argument("GITHUB_REF", help="The GITHUB_REF environmental variable") args = parser.parse_args() - assert args.GITHUB_REF.startswith( - "refs/tags/v" - ), f'GITHUB_REF should start with "refs/tags/v": {args.GITHUB_REF}' + assert args.GITHUB_REF.startswith("refs/tags/v"), ( + f'GITHUB_REF should start with "refs/tags/v": {args.GITHUB_REF}' + ) tag_version = args.GITHUB_REF[11:] package_version = get_version_from_module( Path("aiida_hyperqueue/__init__.py").read_text(encoding="utf-8") diff --git a/aiida_hyperqueue/cli/alloc.py b/aiida_hyperqueue/cli/alloc.py index 7bf218f..f272385 100644 --- a/aiida_hyperqueue/cli/alloc.py +++ b/aiida_hyperqueue/cli/alloc.py @@ -60,8 +60,8 @@ def cmd_add( with computer.get_transport() as transport: retval, _, stderr = transport.exec_command_wait( - f'hq alloc add slurm --backlog {backlog} --time-limit {time_limit} --name ahq {hyper} ' - f'--workers-per-alloc {workers_per_alloc} -- {" ".join(slurm_options)}' + f"hq alloc add slurm --backlog {backlog} --time-limit {time_limit} --name ahq {hyper} " + f"--workers-per-alloc {workers_per_alloc} -- {' '.join(slurm_options)}" ) if retval != 0: