Skip to content

Commit 3f9762b

Browse files
[pre-commit.ci] pre-commit autoupdate (#461)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <[email protected]>
1 parent 4258297 commit 3f9762b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ repos:
4444
hooks:
4545
- id: sort-all
4646
- repo: https://github.com/psf/black
47-
rev: 23.9.1
47+
rev: 23.10.0
4848
hooks:
4949
- id: black
5050
- repo: https://github.com/astral-sh/ruff-pre-commit
51-
rev: v0.0.292
51+
rev: v0.1.1
5252
hooks:
5353
- id: ruff
5454
- repo: https://github.com/dosisod/refurb
55-
rev: v1.21.0
55+
rev: v1.22.1
5656
hooks:
5757
- id: refurb
5858
args: [--ignore, FURB126]
@@ -63,7 +63,7 @@ repos:
6363
args: [-v, --fail-under=75]
6464
exclude: ^(tests/|docs/|scripts/|docs_src/)
6565
- repo: https://github.com/pre-commit/mirrors-mypy
66-
rev: v1.6.0
66+
rev: v1.6.1
6767
hooks:
6868
- id: mypy
6969
additional_dependencies: [

src/_pytask/dag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ def _check_if_dag_has_cycles(dag: nx.DiGraph) -> None:
204204

205205
def _format_cycles(cycles: list[tuple[str, ...]]) -> str:
206206
"""Format cycles as a paths connected by arrows."""
207-
chain = [x for i, x in enumerate(itertools.chain(*cycles)) if i % 2 == 0]
207+
chain = [
208+
x for i, x in enumerate(itertools.chain.from_iterable(cycles)) if i % 2 == 0
209+
]
208210
chain += [cycles[-1][1]]
209211

210212
lines = chain[:1]

0 commit comments

Comments
 (0)