From b89fe110c404428fa872d8bedf66884cb743605e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:38:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.5 → v0.9.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.5...v0.9.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3fae56..330a6a0 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.2 hooks: - id: ruff-format - id: ruff From 9c2bbe4d0f861181a32b810b4ca524afcad75ccb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:38:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/validate_release_tag.py | 6 +++--- aiida_hyperqueue/cli/alloc.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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: