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
+1 -2
View File
@@ -16,8 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from os.path import dirname
from os.path import realpath
from os.path import dirname, realpath
__version__ = version = "0.0.0"
+2 -1
View File
@@ -16,10 +16,11 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import os
from pathlib import Path
import ifcopenshell
class TestPurger:
def __init__(self):
@@ -17,15 +17,12 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import os
from behave.model import Scenario
from behave.model import Scenario
from bimtester.ifc import IfcStore
from bimtester.lang import switch_locale
from logfile import append_logfile
from logfile import create_logfile
from zoom_smart_view import add_smartview
from zoom_smart_view import create_zoom_set_of_smartviews
from logfile import append_logfile, create_logfile
from zoom_smart_view import add_smartview, create_zoom_set_of_smartviews
this_path = os.path.dirname(os.path.realpath(__file__))
@@ -16,8 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step, given, when, then, use_step_matcher
from behave import given, step, then, use_step_matcher, when
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.table import TableModel
@@ -26,7 +26,7 @@ use_step_matcher("parse")
from bimtester.features.steps.attributes_eleclasses import de, en
use_step_matcher("parse")
from bimtester.features.steps.attributes_psets import en, de
from bimtester.features.steps.attributes_psets import de, en
use_step_matcher("parse")
from bimtester.features.steps.attributes_qsets import en
@@ -17,7 +17,6 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,9 +17,7 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell.util.element as eleutils
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -16,9 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from behave import use_step_matcher
from behave import step, use_step_matcher
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -48,6 +46,7 @@ def step_impl(context, ifc_class, property_path):
)
def step_impl(context, ifc_class, property_path, pattern):
import re
from ifcopenshell.util.element import get_psets
pset_name, property_name = property_path.split(".")
@@ -17,8 +17,8 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import json
from behave import step
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,7 +17,6 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,7 +17,6 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step, use_step_matcher
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,14 +17,13 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import math
import numpy as np
import ifcopenshell
import ifcopenshell.util.element
import ifcopenshell.util.placement
import ifcopenshell.util.geolocation
import ifcopenshell.util.placement
import numpy as np
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,7 +17,6 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -18,9 +18,7 @@
import ifcopenshell.util.geolocation
import ifcopenshell.util.placement
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,7 +17,6 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from bimtester import util
from bimtester.ifc import IfcStore
from bimtester.lang import _
@@ -17,7 +17,6 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from bimtester.ifc import IfcStore
from bimtester.lang import _
+3 -5
View File
@@ -16,18 +16,16 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import os
import json
import os
import sys
import webbrowser
from PySide2 import QtCore, QtGui, QtWidgets
import bimtester.reports
import bimtester.run
from PySide2 import QtCore
from PySide2 import QtGui
from PySide2 import QtWidgets
def run():
app = QtWidgets.QApplication(sys.argv)
+3 -1
View File
@@ -19,8 +19,10 @@
import datetime
import json
import os
import pystache
import sys
import pystache
from bimtester.lang import _
+9 -7
View File
@@ -16,27 +16,29 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
import json
import shutil
import logging
import os
import shutil
import sys
import tempfile
import ifcopenshell
try:
import ifcopenshell.express
except:
pass # They are using an old version of IfcOpenShell. Gracefully degrade for now.
import behave.formatter.pretty # Needed for pyinstaller to package it
from bimtester.ifc import IfcStore
from distutils.dir_util import copy_tree
from behave.__main__ import main as behave_main
# TODO: refactor when this isn't super experimental
from logging import StreamHandler
import behave.formatter.pretty # Needed for pyinstaller to package it
from behave.__main__ import main as behave_main
from bimtester.ifc import IfcStore
class TestRunner:
def __init__(self, ifc_path, schema_path=None, ifc=None):
+3 -1
View File
@@ -16,10 +16,12 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import json
import ifcopenshell
import ifcopenshell.util.element
import ifcopenshell.validate
import json
from bimtester.lang import _
+2 -1
View File
@@ -19,8 +19,9 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
import os
import argparse
import os
import bimtester.clean
import bimtester.reports
import bimtester.run
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step, given, when, then, use_step_matcher
from behave import given, step, then, use_step_matcher, when
use_step_matcher("parse")
@@ -17,10 +17,8 @@
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
from behave import step
from utils import IfcFile
use_step_matcher("re")
-1
View File
@@ -21,5 +21,4 @@
from bimtester.guiwidget import run
run()