Skip to content

Commit b036df9

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

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/pytask_parallel/backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from __future__ import annotations
44

5+
import os
6+
import sys
57
import warnings
68
from concurrent.futures import Executor
79
from concurrent.futures import Future
@@ -12,8 +14,6 @@
1214
from typing import Any
1315
from typing import ClassVar
1416

15-
import os
16-
import sys
1717
import cloudpickle
1818
from attrs import define
1919
from loky import get_reusable_executor

src/pytask_parallel/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import importlib.util
66
import inspect
7-
from pathlib import Path
87
from functools import partial
8+
from pathlib import Path
99
from typing import TYPE_CHECKING
1010
from typing import Any
1111

@@ -22,7 +22,6 @@
2222
if TYPE_CHECKING:
2323
from collections.abc import Callable
2424
from concurrent.futures import Future
25-
from pathlib import Path
2625
from types import ModuleType
2726
from types import TracebackType
2827

tests/test_execute.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ def task_assert_math():
395395
pytest.param(ParallelBackend.LOKY, marks=skip_if_deadlock),
396396
],
397397
)
398-
def test_parallel_execution_with_closed_file_handle(
399-
runner, tmp_path, parallel_backend
400-
):
398+
def test_parallel_execution_with_closed_file_handle(runner, tmp_path, parallel_backend):
401399
source = """
402400
from pathlib import Path
403401
from pytask import task

0 commit comments

Comments
 (0)