Skip to content

Commit 4d16c36

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 40ec3c1 commit 4d16c36

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

executorlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from executorlib.interactive.dependencies import ExecutorWithDependencies
55
from executorlib.shared.inputcheck import (
66
check_plot_dependency_graph as _check_plot_dependency_graph,
7+
)
8+
from executorlib.shared.inputcheck import (
79
check_refresh_rate as _check_refresh_rate,
810
)
911
from executorlib.shell.executor import SubprocessExecutor

executorlib/shared/communication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from socket import gethostname
21
import sys
2+
from socket import gethostname
33
from typing import Optional
44

55
import cloudpickle

tests/test_executor_backend_mpi.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ def mpi_funct(i):
2222

2323
class TestExecutorBackend(unittest.TestCase):
2424
def test_meta_executor_serial(self):
25-
with Executor(
26-
max_cores=2, backend="local", block_allocation=True
27-
) as exe:
25+
with Executor(max_cores=2, backend="local", block_allocation=True) as exe:
2826
cloudpickle_register(ind=1)
2927
fs_1 = exe.submit(calc, 1)
3028
fs_2 = exe.submit(calc, 2)
@@ -34,9 +32,7 @@ def test_meta_executor_serial(self):
3432
self.assertTrue(fs_2.done())
3533

3634
def test_meta_executor_single(self):
37-
with Executor(
38-
max_cores=1, backend="local", block_allocation=True
39-
) as exe:
35+
with Executor(max_cores=1, backend="local", block_allocation=True) as exe:
4036
cloudpickle_register(ind=1)
4137
fs_1 = exe.submit(calc, 1)
4238
fs_2 = exe.submit(calc, 2)

0 commit comments

Comments
 (0)