Apply black formatting and ruff isort fixes

Pre-commit checklist: black + ruff check.

Generated with the assistance of an AI coding tool.
This commit is contained in:
Gorgious56
2026-06-22 11:03:47 +02:00
parent 6367de6102
commit 27b0b920a9
11 changed files with 67 additions and 149 deletions
@@ -201,9 +201,7 @@ class TestIterElementsForSource(NewFile):
storey = ifc.create_entity("IfcBuildingStorey")
wall_a = ifc.create_entity("IfcWall")
wall_b = ifc.create_entity("IfcWall")
ifcopenshell.api.spatial.assign_container(
ifc, products=[wall_a, wall_b], relating_structure=storey
)
ifcopenshell.api.spatial.assign_container(ifc, products=[wall_a, wall_b], relating_structure=storey)
result = tool.ClipBox.iter_elements_for_source("SPATIAL", str(storey.id()))
@@ -215,9 +213,7 @@ class TestIterElementsForSource(NewFile):
wall_type = ifc.create_entity("IfcWallType")
wall_a = ifc.create_entity("IfcWall")
wall_b = ifc.create_entity("IfcWall")
ifcopenshell.api.type.assign_type(
ifc, related_objects=[wall_a, wall_b], relating_type=wall_type
)
ifcopenshell.api.type.assign_type(ifc, related_objects=[wall_a, wall_b], relating_type=wall_type)
result = tool.ClipBox.iter_elements_for_source("TYPE", str(wall_type.id()))
@@ -263,9 +259,7 @@ class TestComputeMatrixForSource(NewFile):
storey = ifc.create_entity("IfcBuildingStorey")
wall_a, _ = _make_ifc_cube(ifc, "IfcWall", location=(0.0, 0.0, 0.0), size=2.0)
wall_b, _ = _make_ifc_cube(ifc, "IfcWall", location=(4.0, 0.0, 0.0), size=2.0)
ifcopenshell.api.spatial.assign_container(
ifc, products=[wall_a, wall_b], relating_structure=storey
)
ifcopenshell.api.spatial.assign_container(ifc, products=[wall_a, wall_b], relating_structure=storey)
matrix = tool.ClipBox.compute_matrix_for_source("SPATIAL", str(storey.id()))