ruff: sort imports

This commit is contained in:
Andrej730
2026-08-10 15:31:39 +05:00
parent 717d6aa2af
commit 7370d07db1
66 changed files with 87 additions and 62 deletions
@@ -20,6 +20,7 @@
import math
import pytest
import ifcopenshell
import ifcopenshell.api.aggregate
import ifcopenshell.api.alignment
@@ -1,6 +1,7 @@
import time
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for i in range(3):
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for i, box_alignment in enumerate(["top-left", "center", "invalid", "CENTER"]):
@@ -1,6 +1,7 @@
import time
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
latitudes = [
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for depth in (-1.0, 0.0, 1.0):
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import fail_if, normalize_header, write_fixture
for i, (r1, r2) in enumerate(
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
options = {
@@ -2,6 +2,7 @@ import itertools
import time
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for pty, ety in itertools.product(("GRILLE", "USERDEFINED"), (None, "Something")):
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import fail_if, normalize_header, write_fixture
create_none = lambda f: None
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import fail_if, normalize_header, write_fixture
create_plane = lambda f: f.createIfcPlane(f.createIfcAxis2Placement3D(f.createIfcCartesianPoint((0.0, 0.0, 0.0))))
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
pts = [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0)]
@@ -1,6 +1,7 @@
import itertools
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
defaults = {"Girth": 1.0, "WallThickness": 0.11}
@@ -1,5 +1,6 @@
import ifcopenshell
import ifcopenshell.util.schema
from ...fixture_generate import normalize_header, pass_if, write_fixture
depth = 1.0
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, write_fixture
coords = [(0.0, 0.0), (10.0, 0.0), (10.0, 10.0), (0.0, 10.0)]
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, write_fixture
coords = [(0.0, 0.0), (10.0, 0.0), (10.0, 10.0), (0.0, 10.0)]
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
dims = [
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
coords = [(0.0, 0.0), (10.0, 0.0)]
@@ -1,6 +1,7 @@
import time
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
names = [("Same", "Same"), ("Different", "SomethingElse")]
@@ -1,6 +1,7 @@
import time
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for i, nm in enumerate(("no-mls", "mls", "mlsu")):
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for i, type_decl in enumerate(("IfcLengthMeasure", "IfcPlaneAngleMeasure")):
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
make_nd = lambda d: lambda *c: (c + (0.0,)) if d == 3 else c
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
task = lambda f: f.createIfcTask(ifcopenshell.guid.new(), None, "sleep", IsMilestone=True)
@@ -1,6 +1,7 @@
import itertools
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for cnt in range(0, 3):
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
fns = [
@@ -1,6 +1,7 @@
import time
import ifcopenshell
from ...fixture_generate import normalize_header, pass_if, write_fixture
for ents in [
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import fail_if, normalize_header, write_fixture
segs = [
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, write_fixture
cases = (
@@ -1,4 +1,5 @@
import ifcopenshell
from ...fixture_generate import normalize_header, write_fixture
ifc_file = ifcopenshell.file(schema="IFC2X3")
@@ -1,6 +1,7 @@
import ifcopenshell
import ifcopenshell.api.owner
import ifcopenshell.api.root
from ...fixture_generate import normalize_header, pass_if, write_fixture
guid1 = "3pdqyORIn8KBHZAhhtJ72T"
@@ -16,8 +16,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import pytest
import ifcopenshell
import test.bootstrap
@@ -5,6 +5,7 @@ import tabulate
import ifcopenshell.express.rule_executor
import ifcopenshell.validate
from .fixture_generate import FailObj, Result, parse_result
@@ -1,4 +1,5 @@
import csv
from pathlib import Path
import pytest
@@ -6,8 +7,6 @@ import ifcopenshell
import ifcopenshell.geom
import ifcopenshell.util.shape
from pathlib import Path
repo_root = Path(__file__).resolve().parent.parent.parent.parent
test_files = repo_root / "test" / "input" / "tests"
@@ -22,6 +22,7 @@ import pytest
import tabulate
import ifcopenshell.validate
from .fixture_generate import FailObj, Result, parse_result
_filepaths = list((Path(__file__).parent / "fixtures/validate").glob("*.ifc"))
@@ -19,10 +19,9 @@
import ifcopenshell.api.control
import ifcopenshell.api.cost
import test.bootstrap
import ifcopenshell.api.root
import ifcopenshell.util.cost as subject
import test.bootstrap
class TestGetCostItemForProduct(test.bootstrap.IFC4):
@@ -38,7 +38,6 @@ import ifcopenshell.api.sequence
import ifcopenshell.api.spatial
import ifcopenshell.api.style
import ifcopenshell.api.type
import ifcopenshell.api.feature
import ifcopenshell.guid
import ifcopenshell.util.element as subject
import test.bootstrap