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/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3fae56..b3adb8b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # pre-commit install repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: fix-encoding-pragma @@ -11,7 +11,7 @@ repos: - id: check-json - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.5 + rev: v0.9.3 hooks: - id: ruff-format - id: ruff 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: