Remove some unused imports

This commit is contained in:
Andrej730
2026-02-05 12:20:06 +05:00
parent 34ffaea2c9
commit ff3933a117
260 changed files with 113 additions and 687 deletions
@@ -5,7 +5,6 @@ try:
if not hasattr(bpy, "context"):
raise ModuleNotFoundError
import addon_utils
import bl_i18n_utils
BPY_IS_LOADED = True
except ModuleNotFoundError:
@@ -1,9 +1,6 @@
import csv
import json
import os
# import pystache
import subprocess
from pathlib import Path
import ifcopenshell
-3
View File
@@ -17,14 +17,11 @@
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
import math
import sys
import uuid
import bpy
import bspy # pyright: ignore[reportMissingImports]
# sys.path.append('C:\Program Files\Python37\Lib\site-packages')
import lxml
import lxml.etree
from bspy import Gbxml # pyright: ignore[reportMissingImports]
@@ -20,7 +20,6 @@
# pylint: skip-file
import bpy
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.context
import ifcopenshell.api.geometry
@@ -17,10 +17,8 @@
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
import os
from pathlib import Path
import bpy
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.context
import ifcopenshell.api.geometry
@@ -17,7 +17,7 @@
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
from itertools import chain
from math import cos, pi, tan
from math import pi, tan
from pathlib import Path
from typing import Optional, Union
@@ -25,10 +25,8 @@ import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.context
import ifcopenshell.api.geometry
import ifcopenshell.api.material
import ifcopenshell.api.project
import ifcopenshell.api.root
import ifcopenshell.api.style
import ifcopenshell.api.unit
import ifcopenshell.util.element
import numpy as np
@@ -20,13 +20,10 @@ import csv
import os
import random
from collections import namedtuple
from itertools import chain
from math import cos, pi, sin, tan
from pathlib import Path
from math import cos, pi, sin
from random import uniform
import bpy
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.context
import ifcopenshell.api.geometry
@@ -36,7 +33,7 @@ import ifcopenshell.api.style
import ifcopenshell.api.unit
import ifcopenshell.util.unit
from ifcopenshell.util.shape_builder import ShapeBuilder
from mathutils import Matrix, Vector
from mathutils import Vector
import bonsai.tool as tool
@@ -17,7 +17,6 @@
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
import bpy
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.context
import ifcopenshell.api.geometry
@@ -19,11 +19,10 @@
# fmt: off
# pylint: skip-file
from math import cos, pi
from math import pi
from pathlib import Path
import boltspy as bolts # pyright: ignore[reportMissingImports]
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.material
import ifcopenshell.api.project
@@ -21,7 +21,6 @@ import json
import bmesh
import bpy
import ifcopenshell
import ifcopenshell.api.pset
import ifcopenshell.util.element
-1
View File
@@ -7,7 +7,6 @@ from typing import Union
import ifc5d
import ifcopenshell.util.pset
import ifcopenshell.util.type
def order_dict(dictionary):
-2
View File
@@ -21,8 +21,6 @@
import argparse
from pathlib import Path
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.aggregate
import ifcopenshell.api.context
import ifcopenshell.api.geometry
-2
View File
@@ -21,8 +21,6 @@
import argparse
from pathlib import Path
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.aggregate
import ifcopenshell.api.context
import ifcopenshell.api.geometry
@@ -31,7 +31,6 @@ import os
import sys
from sys import platform
import ifcopenshell
import ifcopenshell.api.pset
import ifcopenshell.util.element
+4 -4
View File
@@ -45,10 +45,10 @@ for dep in dependencies:
subprocess.check_call(command + [dep])
try:
import pygments
import pytest
import pytest_bdd
import pytest_blender
import pygments # noqa: F401
import pytest # noqa: F401
import pytest_bdd # noqa: F401
import pytest_blender # noqa: F401
print("Test dependency installation was successful!")
except Exception as e:
-1
View File
@@ -4,7 +4,6 @@ from typing import NamedTuple
import ifcopenshell
import ifcopenshell.geom
import ifcopenshell.ifcopenshell_wrapper as W
import ifcopenshell.util.element
# W.turn_on_detailed_logging()
-1
View File
@@ -3,7 +3,6 @@
from itertools import cycle
from math import radians
import ifcopenshell
import ifcopenshell.api.aggregate
import ifcopenshell.api.context
import ifcopenshell.api.geometry