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 Nov 6, 2024
1 parent 5330072 commit 44afd9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion executorlib/cache/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def execute_tasks_h5(
]
else:
if len(future_wait_key_lst) > 0:
raise ValueError("Future objects are not supported as input if disable_dependencies=True.")
raise ValueError(
"Future objects are not supported as input if disable_dependencies=True."
)
task_dependent_lst = []
process_dict[task_key] = execute_function(
command=_get_execute_command(
Expand Down
4 changes: 3 additions & 1 deletion tests/test_cache_executor_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def test_executor_dependence_mixed(self):

def test_executor_dependence_error(self):
with self.assertRaises(ValueError):
with FileExecutor(execute_function=execute_in_subprocess, disable_dependencies=True) as exe:
with FileExecutor(
execute_function=execute_in_subprocess, disable_dependencies=True
) as exe:
exe.submit(my_funct, 1, b=exe.submit(my_funct, 1, b=2))

def test_executor_working_directory(self):
Expand Down

0 comments on commit 44afd9c

Please sign in to comment.