Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#178)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 29, 2024
1 parent f374650 commit 90c35e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
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

0 comments on commit 90c35e5

Please sign in to comment.