Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #40

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
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
Loading