Skip to content

Commit 94ae58c

Browse files
pre-commit-ci[bot]vkruglik-aka
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 879ff2c commit 94ae58c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/xdist/scheduler/isoscope.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,12 @@ def add_node_collection(
367367

368368
# Check that the new collection matches the official collection
369369
if self._do_two_nodes_have_same_collection(
370-
reference_node=cast(WorkerController, self._official_test_collection_node),
371-
reference_collection=cast(tuple[str, ...], self._official_test_collection),
370+
reference_node=cast(
371+
WorkerController, self._official_test_collection_node
372+
),
373+
reference_collection=cast(
374+
tuple[str, ...], self._official_test_collection
375+
),
372376
node=node,
373377
collection=collection,
374378
):
@@ -402,7 +406,7 @@ def add_node_collection(
402406
reference_node=reference_worker.node,
403407
reference_collection=cast(tuple[str, ...], reference_worker.collection),
404408
node=pending_worker.node,
405-
collection=cast(tuple[str, ...],pending_worker.collection),
409+
collection=cast(tuple[str, ...], pending_worker.collection),
406410
):
407411
same_collection = False
408412

@@ -429,7 +433,8 @@ def add_node_collection(
429433
all_tests = [
430434
_TestProxy(test_id=test_id, test_index=test_index)
431435
for test_index, test_id in enumerate(
432-
cast(tuple[str, ...], self._official_test_collection))
436+
cast(tuple[str, ...], self._official_test_collection)
437+
)
433438
]
434439
shuffled_test_collection = random.sample(all_tests, k=len(all_tests))
435440

0 commit comments

Comments
 (0)