From aa2bb84268a3fa967b6a39c1c62535cc4c3a8871 Mon Sep 17 00:00:00 2001 From: Gabe Fierro Date: Thu, 31 Oct 2024 22:34:27 -0600 Subject: [PATCH] formatting and imports --- buildingmotif/dataclasses/validation.py | 3 +-- tests/unit/dataclasses/test_shape_collection.py | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/buildingmotif/dataclasses/validation.py b/buildingmotif/dataclasses/validation.py index f5ffd96e..b0b6315b 100644 --- a/buildingmotif/dataclasses/validation.py +++ b/buildingmotif/dataclasses/validation.py @@ -7,6 +7,7 @@ from typing import TYPE_CHECKING, Dict, Generator, List, Optional, Set, Tuple, Union import rdflib +from pyshacl.helper.path_helper import shacl_path_to_sparql_path from rdflib import Graph, Literal, URIRef from rdflib.collection import Collection from rdflib.term import BNode, Node @@ -20,8 +21,6 @@ get_template_parts_from_shape, replace_nodes, ) -import pyshacl -from pyshacl.helper.path_helper import shacl_path_to_sparql_path if TYPE_CHECKING: from buildingmotif.dataclasses import Library, Model, Template diff --git a/tests/unit/dataclasses/test_shape_collection.py b/tests/unit/dataclasses/test_shape_collection.py index 7b514dd4..ed04c085 100644 --- a/tests/unit/dataclasses/test_shape_collection.py +++ b/tests/unit/dataclasses/test_shape_collection.py @@ -185,5 +185,7 @@ def test_shape_to_query(clean_building_motif): assert ( "?target rdf:type/rdfs:subClassOf* " ) in query5, query5 - assert "?target ?label" in query5, query5 + assert ( + "?target ?label" in query5 + ), query5 assert "UNION" in query5, query5