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 Aug 20, 2024
1 parent bdcd861 commit 322e412
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aiida_hyperqueue/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"FINISHED": JobState.DONE,
}


class AiiDAHypereQueueDeprecationWarning(Warning):
"""Class for HypereQueue plugin deprecations.
"""
"""Class for HypereQueue plugin deprecations."""


class HyperQueueJobResource(JobResource):
Expand Down Expand Up @@ -72,10 +72,10 @@ def validate_resources(cls, **kwargs):
"Must specify `num_cpus`, or (`num_machines` and `num_mpiprocs_per_machine`)"
)
else:
message = 'The `num_machines` and `num_mpiprocs_per_machine` for setting hyperqueue resources are deprecated. '
'Please set `num_cpus` and `memory_mb`.'
message = "The `num_machines` and `num_mpiprocs_per_machine` for setting hyperqueue resources are deprecated. "
"Please set `num_cpus` and `memory_mb`."

message = f'{message} (this will be removed in aiida-hyperqueue v1.0)'
message = f"{message} (this will be removed in aiida-hyperqueue v1.0)"
warnings.warn(message, AiiDAHypereQueueDeprecationWarning, stacklevel=3)
else:
if not isinstance(resources.num_cpus, int):
Expand Down

0 comments on commit 322e412

Please sign in to comment.