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 Jan 29, 2024
1 parent 0b259cc commit 2aede54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pytest_celery/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,14 @@ def _set_nodes(
tuple[CeleryTestNode]: Nodes to use for the cluster.
"""
return tuple(
node_cls(node)
if isinstance(
node,
CeleryTestContainer,
(
node_cls(node)
if isinstance(
node,
CeleryTestContainer,
)
else node
)
else node
for node in nodes
) # type: ignore

Expand Down
1 change: 1 addition & 0 deletions src/pytest_celery/vendors/worker/content/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Template for Celery worker application."""

from __future__ import annotations

import json
Expand Down

0 comments on commit 2aede54

Please sign in to comment.