diff --git a/executorlib/cache/shared.py b/executorlib/cache/shared.py index c1f3adab..9cd540c0 100644 --- a/executorlib/cache/shared.py +++ b/executorlib/cache/shared.py @@ -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( diff --git a/tests/test_cache_executor_serial.py b/tests/test_cache_executor_serial.py index 3e98b1e5..c5962aac 100644 --- a/tests/test_cache_executor_serial.py +++ b/tests/test_cache_executor_serial.py @@ -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):