Skip to content

Commit 30d0c81

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d6403e4 commit 30d0c81

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

executorlib/__init__.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
from executorlib._version import get_versions as _get_versions
44
from executorlib.interactive.executor import ExecutorWithDependencies, create_executor
55
from executorlib.standalone.inputcheck import (
6-
check_plot_dependency_graph as _check_plot_dependency_graph,
6+
check_executor as _check_executor,
77
)
88
from executorlib.standalone.inputcheck import (
9-
check_refresh_rate as _check_refresh_rate,
9+
check_nested_flux_executor as _check_nested_flux_executor,
1010
)
1111
from executorlib.standalone.inputcheck import (
12-
check_executor as _check_executor,
12+
check_plot_dependency_graph as _check_plot_dependency_graph,
1313
)
1414
from executorlib.standalone.inputcheck import (
15-
check_nested_flux_executor as _check_nested_flux_executor,
15+
check_refresh_rate as _check_refresh_rate,
1616
)
1717

1818
__version__ = _get_versions()["version"]
@@ -210,15 +210,25 @@ def __new__(
210210
if cache_directory is None:
211211
cache_directory = "executorlib_cache"
212212
if max_workers != 1:
213-
raise ValueError("The number of workers cannot be controlled with the pysqa based backend.")
213+
raise ValueError(
214+
"The number of workers cannot be controlled with the pysqa based backend."
215+
)
214216
if max_cores != 1:
215-
raise ValueError("The number of cores cannot be controlled with the pysqa based backend.")
217+
raise ValueError(
218+
"The number of cores cannot be controlled with the pysqa based backend."
219+
)
216220
if hostname_localhost is not None:
217-
raise ValueError("The option to connect to hosts based on their hostname is not available with the pysqa based backend.")
221+
raise ValueError(
222+
"The option to connect to hosts based on their hostname is not available with the pysqa based backend."
223+
)
218224
if block_allocation:
219-
raise ValueError("The option block_allocation is not available with the pysqa based backend.")
225+
raise ValueError(
226+
"The option block_allocation is not available with the pysqa based backend."
227+
)
220228
if init_function is not None:
221-
raise ValueError("The option to specify an init_function is not available with the pysqa based backend.")
229+
raise ValueError(
230+
"The option to specify an init_function is not available with the pysqa based backend."
231+
)
222232
_check_executor(executor=flux_executor)
223233
_check_nested_flux_executor(nested_flux_executor=flux_executor_nesting)
224234
return FileExecutor(

executorlib/cache/executor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
from executorlib.base.executor import ExecutorBase
55
from executorlib.cache.shared import execute_tasks_h5
6+
from executorlib.standalone.cache.spawner import (
7+
execute_in_subprocess,
8+
terminate_subprocess,
9+
)
610
from executorlib.standalone.inputcheck import (
711
check_command_line_argument_lst,
12+
check_gpus_per_worker,
813
check_oversubscribe,
914
check_threads_per_core,
10-
check_gpus_per_worker,
11-
)
12-
from executorlib.standalone.cache.spawner import (
13-
execute_in_subprocess,
14-
terminate_subprocess,
1515
)
1616
from executorlib.standalone.thread import RaisingThread
1717

0 commit comments

Comments
 (0)