File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ repos:
44
44
hooks :
45
45
- id : sort-all
46
46
- repo : https://github.com/psf/black
47
- rev : 23.9.1
47
+ rev : 23.10.0
48
48
hooks :
49
49
- id : black
50
50
- repo : https://github.com/astral-sh/ruff-pre-commit
51
- rev : v0.0.292
51
+ rev : v0.1.1
52
52
hooks :
53
53
- id : ruff
54
54
- repo : https://github.com/dosisod/refurb
55
- rev : v1.21.0
55
+ rev : v1.22.1
56
56
hooks :
57
57
- id : refurb
58
58
args : [--ignore, FURB126]
63
63
args : [-v, --fail-under=75]
64
64
exclude : ^(tests/|docs/|scripts/|docs_src/)
65
65
- repo : https://github.com/pre-commit/mirrors-mypy
66
- rev : v1.6.0
66
+ rev : v1.6.1
67
67
hooks :
68
68
- id : mypy
69
69
additional_dependencies : [
Original file line number Diff line number Diff line change @@ -204,7 +204,9 @@ def _check_if_dag_has_cycles(dag: nx.DiGraph) -> None:
204
204
205
205
def _format_cycles (cycles : list [tuple [str , ...]]) -> str :
206
206
"""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
+ ]
208
210
chain += [cycles [- 1 ][1 ]]
209
211
210
212
lines = chain [:1 ]
You can’t perform that action at this time.
0 commit comments