Skip to content

Commit c7430e1

Browse files
committed
run both black and ruff
1 parent 6af2641 commit c7430e1

4 files changed

Lines changed: 17 additions & 15 deletions

File tree

src_py/query_result.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def get_schema(self) -> dict[str, str]:
272272
return dict(
273273
zip(
274274
self._query_result.getColumnNames(),
275-
self._query_result.getColumnDataTypes(), strict=False,
275+
self._query_result.getColumnDataTypes(),
276+
strict=False,
276277
)
277278
)
278279

src_py/torch_geometric_result_converter.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,13 @@ def __extract_properties_from_node(
135135
# Check if the shape of the property is consistent
136136
if (
137137
label in self.nodes_dict and prop_name in self.nodes_dict[label]
138-
):
139-
# If the shape is inconsistent, then mark the property as unconverted
140-
if curr_value.shape != self.nodes_dict[label][prop_name][0].shape:
141-
self.warning_messages.add(
142-
f"Property {label}.{prop_name} has an inconsistent shape. The property is marked as unconverted."
143-
)
144-
self.__mark_property_unconverted(label, prop_name)
145-
pos = self.__add_unconverted_property(node, label, prop_name)
146-
continue
138+
) and curr_value.shape != self.nodes_dict[label][prop_name][0].shape:
139+
self.warning_messages.add(
140+
f"Property {label}.{prop_name} has an inconsistent shape. The property is marked as unconverted."
141+
)
142+
self.__mark_property_unconverted(label, prop_name)
143+
pos = self.__add_unconverted_property(node, label, prop_name)
144+
continue
147145

148146
# Create the dictionary for the label if it does not exist
149147
if label not in self.nodes_dict:

test/test_arrow.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ def _test_node(_conn: lb.Connection) -> None:
599599
ground_truth.TINY_SNB_PERSONS_GROUND_TRUTH[8],
600600
ground_truth.TINY_SNB_PERSONS_GROUND_TRUTH[9],
601601
ground_truth.TINY_SNB_PERSONS_GROUND_TRUTH[10],
602-
], strict=False,
602+
],
603+
strict=False,
603604
):
604605
_test_node_helper(a, b)
605606

@@ -620,7 +621,8 @@ def _test_node_rel(_conn: lb.Connection) -> None:
620621
ground_truth.TINY_SNB_PERSONS_GROUND_TRUTH[3],
621622
ground_truth.TINY_SNB_PERSONS_GROUND_TRUTH[5],
622623
ground_truth.TINY_SNB_PERSONS_GROUND_TRUTH[7],
623-
], strict=False,
624+
],
625+
strict=False,
624626
):
625627
_test_node_helper(a, b)
626628
for a, b in zip(
@@ -653,7 +655,8 @@ def _test_node_rel(_conn: lb.Connection) -> None:
653655
"rating": 9.2,
654656
"year": 2015,
655657
},
656-
], strict=False,
658+
],
659+
strict=False,
657660
):
658661
_test_node_helper(a, b)
659662

@@ -663,7 +666,8 @@ def _test_node_rel(_conn: lb.Connection) -> None:
663666
ground_truth.TINY_SNB_ORGANISATIONS_GROUND_TRUTH[4],
664667
ground_truth.TINY_SNB_ORGANISATIONS_GROUND_TRUTH[6],
665668
ground_truth.TINY_SNB_ORGANISATIONS_GROUND_TRUTH[6],
666-
], strict=False,
669+
],
670+
strict=False,
667671
):
668672
_test_node_helper(a, b)
669673

test/type_aliases.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from typing import TypeAlias
32

43
from real_ladybug import Connection, Database

0 commit comments

Comments
 (0)