Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #178

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
args: ["--line-length", "120"]
Expand Down
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