Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent e47bc6c commit ef5f11f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/validate_release_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions aiida_hyperqueue/cli/alloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ef5f11f

Please sign in to comment.