Skip to content

Commit a07c206

Browse files
committed
Apply ruff formatting to pipeline.py
1 parent 7cb41d3 commit a07c206

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/neo4j_graphrag/experimental/pipeline/pipeline.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
from neo4j_graphrag.utils.logging import prettify
2424

2525
try:
26-
from neo4j_viz import Node, Relationship, VisualizationGraph as NeoVizGraph, CaptionAlignment
26+
from neo4j_viz import (
27+
Node,
28+
Relationship,
29+
VisualizationGraph as NeoVizGraph,
30+
CaptionAlignment,
31+
)
2732

2833
HAS_NEO4J_VIZ = True
2934
except ImportError:
@@ -248,7 +253,7 @@ def get_neo4j_viz_graph(self, hide_unused_outputs: bool = True) -> NeoVizGraph:
248253
caption_size=12,
249254
pinned=False,
250255
x=0,
251-
y=0
256+
y=0,
252257
)
253258
)
254259
node_counter += 1
@@ -267,16 +272,18 @@ def get_neo4j_viz_graph(self, hide_unused_outputs: bool = True) -> NeoVizGraph:
267272
caption_size=10,
268273
pinned=False,
269274
x=0,
270-
y=0
275+
y=0,
271276
)
272277
)
273278
# Connect component to its output
274279
relationships.append(
275280
Relationship(
276-
source=node_ids[n], target=node_ids[param_node_name], caption="",
281+
source=node_ids[n],
282+
target=node_ids[param_node_name],
283+
caption="",
277284
caption_align=CaptionAlignment.CENTER,
278285
caption_size=10,
279-
color="#000000"
286+
color="#000000",
280287
)
281288
)
282289
node_counter += 1
@@ -299,7 +306,7 @@ def get_neo4j_viz_graph(self, hide_unused_outputs: bool = True) -> NeoVizGraph:
299306
caption=param,
300307
color="#EA4335", # Red for parameter connections
301308
caption_align=CaptionAlignment.CENTER,
302-
caption_size=10
309+
caption_size=10,
303310
)
304311
)
305312

0 commit comments

Comments
 (0)