Sort imports

This commit is contained in:
Andrej730
2025-12-19 18:53:04 +05:00
parent 29176330e8
commit 13be6ccd45
731 changed files with 2234 additions and 1709 deletions
@@ -17,6 +17,7 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import pytest
import ifcopenshell.util.scripts.validate_stub as subject
@@ -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 ifcopenshell.ifcopenshell_wrapper as W
import ifcopenshell.util.attribute as subject
@@ -17,10 +17,11 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import pytest
import test.bootstrap
import ifcopenshell.api.root
import ifcopenshell.api.type
import ifcopenshell.util.brick as subject
import test.bootstrap
class TestGetBrickTypeIFC4(test.bootstrap.IFC4):
@@ -16,11 +16,11 @@
# 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 test.bootstrap
import ifcopenshell.api.classification
import ifcopenshell.api.root
import ifcopenshell.api.type
import ifcopenshell.api.classification
import ifcopenshell.util.classification as subject
import test.bootstrap
class TestGetReferences(test.bootstrap.IFC4):
@@ -17,8 +17,9 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import pytest
import test.bootstrap
import ifcopenshell.util.date as subject
import test.bootstrap
class TestReadableIFCDuration:
@@ -16,30 +16,31 @@
# 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 pytest
import ifcopenshell.api.aggregate
import ifcopenshell.api.classification
import ifcopenshell.api.context
import ifcopenshell.api.control
import ifcopenshell.api.cost
import ifcopenshell.api.profile
import pytest
import test.bootstrap
import ifcopenshell.api.document
import ifcopenshell.api.feature
import ifcopenshell.api.pset
import ifcopenshell.api.root
import ifcopenshell.api.type
import ifcopenshell.api.nest
import ifcopenshell.api.style
import ifcopenshell.api.geometry
import ifcopenshell.api.group
import ifcopenshell.api.layer
import ifcopenshell.api.library
import ifcopenshell.api.context
import ifcopenshell.api.spatial
import ifcopenshell.api.geometry
import ifcopenshell.api.sequence
import ifcopenshell.api.classification
import ifcopenshell.api.material
import ifcopenshell.api.document
import ifcopenshell.api.aggregate
import ifcopenshell.api.group
import ifcopenshell.api.nest
import ifcopenshell.api.profile
import ifcopenshell.api.pset
import ifcopenshell.api.root
import ifcopenshell.api.sequence
import ifcopenshell.api.spatial
import ifcopenshell.api.style
import ifcopenshell.api.type
import ifcopenshell.guid
import ifcopenshell.util.element as subject
import test.bootstrap
from ifcopenshell.util.shape_builder import ShapeBuilder
@@ -16,13 +16,14 @@
# 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 pytest
import test.bootstrap
import ifcopenshell.util.file as subject
import tempfile
import zipfile
from pathlib import Path
import pytest
import ifcopenshell.util.file as subject
import test.bootstrap
HEADER_EXTRACTOR_TEST_FILE_STR = """
ISO-10303-21;
@@ -17,11 +17,12 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import numpy as np
import test.bootstrap
import ifcopenshell.api.root
import ifcopenshell.api.context
import ifcopenshell.api.georeference
import ifcopenshell.api.root
import ifcopenshell.util.geolocation as subject
import test.bootstrap
class TestXYZ2ENH(test.bootstrap.IFC4):
@@ -17,8 +17,8 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import test.bootstrap
import ifcopenshell.util.placement as subject
import test.bootstrap
class TestGetStoreyElevationIFC4(test.bootstrap.IFC4):
@@ -17,8 +17,8 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
"""Run this test from src/ifcopenshell-python folder: pytest --durations=0 ifcopenshell/util/test_pset.py"""
from ifcopenshell.util import pset
from ifcopenshell import util
from ifcopenshell.util import pset
from ifcopenshell.util.pset import ApplicableEntity
@@ -16,9 +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 test.bootstrap
import ifcopenshell.api.project
import ifcopenshell.util.schema as subject
import test.bootstrap
class TestMigrator(test.bootstrap.IFC4):
@@ -16,24 +16,25 @@
# 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 numpy as np
import pytest
import test.bootstrap
import ifcopenshell.api.spatial
import ifcopenshell.api.root
import ifcopenshell.api.unit
import ifcopenshell.api.classification
import ifcopenshell.api.pset
import ifcopenshell.api.type
import ifcopenshell.api.material
import ifcopenshell.api.geometry
import ifcopenshell.api.aggregate
import ifcopenshell.api.classification
import ifcopenshell.api.geometry
import ifcopenshell.api.group
import ifcopenshell.api.material
import ifcopenshell.api.pset
import ifcopenshell.api.root
import ifcopenshell.api.sequence
import ifcopenshell.api.spatial
import ifcopenshell.api.type
import ifcopenshell.api.unit
import ifcopenshell.util.element
import ifcopenshell.util.selector as subject
import ifcopenshell.util.placement
import ifcopenshell.util.pset
import numpy as np
import ifcopenshell.util.selector as subject
import test.bootstrap
class TestFormat:
@@ -16,27 +16,29 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from math import degrees, radians
from typing import Any, Union
import numpy as np
import pytest
import ifcopenshell.api
import ifcopenshell.geom
import ifcopenshell.util
import ifcopenshell.util.shape
import pytest
import test.bootstrap
import ifcopenshell.api
import numpy as np
from ifcopenshell.util.shape_builder import (
ShapeBuilder,
is_x,
np_rotation_matrix,
np_to_3d,
np_angle,
V,
is_x,
np_angle,
np_angle_signed,
np_normal,
np_intersect_line_line,
np_matrix_to_euler,
np_normal,
np_rotation_matrix,
np_to_3d,
)
from math import degrees, radians
from typing import Any, Union
class TestMathutilsCompatibleMethods(test.bootstrap.IFC4):
@@ -16,14 +16,16 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from typing import get_args
import pytest
import test.bootstrap
import ifcopenshell.api
import ifcopenshell.api.root
import ifcopenshell.api.system
import ifcopenshell.util.schema
import ifcopenshell.util.system as subject
from typing import get_args
import test.bootstrap
class TestValidateGroupTypes:
@@ -17,9 +17,10 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import pytest
import test.bootstrap
import ifcopenshell.api
import ifcopenshell.util.type as subject
import test.bootstrap
class TestGetApplicableTypes(test.bootstrap.IFC4):
@@ -16,18 +16,20 @@
# 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 test.bootstrap
from math import pi
import numpy as np
import ifcopenshell.api.context
import ifcopenshell.api.unit
import ifcopenshell.api.root
import ifcopenshell.api.georeference
import ifcopenshell.api.pset
import ifcopenshell.api.root
import ifcopenshell.api.unit
import ifcopenshell.util.element
import ifcopenshell.util.geolocation
import ifcopenshell.util.unit as subject
import test.bootstrap
from ifcopenshell.util.shape_builder import ShapeBuilder
from math import pi
class TestCacheUnits(test.bootstrap.IFC4):
@@ -16,9 +16,11 @@
# 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 pathlib
import pytest
import ifcopenshell.util.unit
import numpy as np
import pytest
import ifcopenshell.util.unit
UNITS_FIXTURE_DIR = pathlib.Path(__file__).parent.parent / "fixtures" / "units"