ruff - check for more unused imports

This commit is contained in:
Andrej730
2026-01-26 12:45:17 +05:00
parent 4edcad13b8
commit 72f8218fcd
74 changed files with 56 additions and 138 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
# Currently extensions support for v2 is only read-only. # Currently extensions support for v2 is only read-only.
from dataclasses import dataclass, field, fields from dataclasses import dataclass, field
from typing import Optional from typing import Optional
+1 -2
View File
@@ -3,11 +3,10 @@
from __future__ import annotations from __future__ import annotations
import datetime import datetime
import tempfile
import uuid import uuid
import zipfile import zipfile
from pathlib import Path from pathlib import Path
from typing import Any, NoReturn, Optional, Union from typing import Any, NoReturn, Optional
import numpy as np import numpy as np
from ifcopenshell import entity_instance from ifcopenshell import entity_instance
+1 -1
View File
@@ -1,7 +1,7 @@
import uuid import uuid
import zipfile import zipfile
from collections.abc import Iterable from collections.abc import Iterable
from typing import Any, Literal, Optional, Union from typing import Literal, Optional, Union
import ifcopenshell.util.placement import ifcopenshell.util.placement
import ifcopenshell.util.unit import ifcopenshell.util.unit
-1
View File
@@ -24,7 +24,6 @@ import time
import urllib.parse import urllib.parse
import uuid import uuid
import webbrowser import webbrowser
from re import A
from typing import Any, Optional from typing import Any, Optional
import requests import requests
+1 -1
View File
@@ -1,7 +1,7 @@
"""BCF XML V3 Documents handler.""" """BCF XML V3 Documents handler."""
import zipfile import zipfile
from typing import Any, Optional from typing import Optional
import bcf.v3.model as mdl import bcf.v3.model as mdl
from bcf.inmemory_zipfile import ZipFileInterface from bcf.inmemory_zipfile import ZipFileInterface
+1 -1
View File
@@ -1,7 +1,7 @@
import uuid import uuid
import zipfile import zipfile
from collections.abc import Iterable from collections.abc import Iterable
from typing import Any, Literal, Optional, Union from typing import Literal, Optional, Union
import ifcopenshell.util.placement import ifcopenshell.util.placement
import ifcopenshell.util.unit import ifcopenshell.util.unit
+6
View File
@@ -140,3 +140,9 @@ max-attributes = 10
[tool.pylint.format] [tool.pylint.format]
expected-line-ending-format = "LF" expected-line-ending-format = "LF"
max-line-length = 120 max-line-length = 120
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]
-2
View File
@@ -1,11 +1,9 @@
import json
import os import os
import zipfile import zipfile
from pathlib import Path from pathlib import Path
import bcf.v3.model as mdl import bcf.v3.model as mdl
from bcf.v3.bcfxml import BcfXml from bcf.v3.bcfxml import BcfXml
from bcf.v3.topic import TopicHandler
from xsdata.models.datatype import XmlDateTime from xsdata.models.datatype import XmlDateTime
-1
View File
@@ -984,7 +984,6 @@ class Client:
def apply_ifc_classification_properties( def apply_ifc_classification_properties(
ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance, classificationProperties: dict[str, Any] ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance, classificationProperties: dict[str, Any]
) -> None: ) -> None:
import ifcopenshell.api
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.util.element import ifcopenshell.util.element
+6
View File
@@ -43,3 +43,9 @@ Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
[tool.setuptools] [tool.setuptools]
py-modules = ["bsdd","bsdd_json","type_hints"] py-modules = ["bsdd","bsdd_json","type_hints"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]
-2
View File
@@ -1,6 +1,4 @@
import argparse import argparse
import os
import sys
import ifcopenshell import ifcopenshell
from ifc4d.msp2ifc import MSP2Ifc from ifc4d.msp2ifc import MSP2Ifc
-2
View File
@@ -4,11 +4,9 @@ from datetime import date, datetime, timedelta
from typing import Any, TypedDict, Union from typing import Any, TypedDict, Union
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.control import ifcopenshell.api.control
import ifcopenshell.api.resource import ifcopenshell.api.resource
import ifcopenshell.api.sequence import ifcopenshell.api.sequence
import ifcopenshell.util.date
from typing_extensions import NotRequired from typing_extensions import NotRequired
-2
View File
@@ -24,7 +24,6 @@ import datetime
from typing import Any, Literal, NamedTuple, Optional, Union, cast, get_args from typing import Any, Literal, NamedTuple, Optional, Union, cast, get_args
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.cost import ifcopenshell.api.cost
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.api.resource import ifcopenshell.api.resource
@@ -33,7 +32,6 @@ import ifcopenshell.api.unit
import ifcopenshell.util.date import ifcopenshell.util.date
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.resource import ifcopenshell.util.resource
import ifcopenshell.util.unit
import isodate import isodate
SUPPORTED_COLUMN = Literal[ SUPPORTED_COLUMN = Literal[
-1
View File
@@ -22,7 +22,6 @@ import locale
import re import re
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.sequence import ifcopenshell.api.sequence
import ifcopenshell.util.date import ifcopenshell.util.date
-1
View File
@@ -24,7 +24,6 @@ import ifcopenshell
import ifcopenshell.util.date import ifcopenshell.util.date
import ifcopenshell.util.sequence import ifcopenshell.util.sequence
from .common import ScheduleIfcGenerator
class Ifc2P6: class Ifc2P6:
+1 -2
View File
@@ -18,10 +18,9 @@
import datetime import datetime
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from datetime import date, timedelta from datetime import timedelta
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.control import ifcopenshell.api.control
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.api.root import ifcopenshell.api.root
-4
View File
@@ -17,12 +17,8 @@
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>. # along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
import datetime import datetime
import math
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.util.date
from .common import ScheduleIfcGenerator from .common import ScheduleIfcGenerator
-4
View File
@@ -16,11 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>. # along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
from datetime import date, datetime, timedelta
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.util.date
from xerparser.reader import Reader from xerparser.reader import Reader
from .common import ScheduleIfcGenerator from .common import ScheduleIfcGenerator
-1
View File
@@ -12,7 +12,6 @@ from collections import defaultdict
from datetime import timedelta from datetime import timedelta
from typing import Any from typing import Any
import ifcopenshell.util.date
from .common import Activity, Calendar, ScheduleIfcGenerator, WBSEntry from .common import Activity, Calendar, ScheduleIfcGenerator, WBSEntry
from .wpattern import AstaCalendarWorkPattern from .wpattern import AstaCalendarWorkPattern
+6
View File
@@ -28,3 +28,9 @@ Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
include = ["ifc4d"] include = ["ifc4d"]
exclude = ["test*"] exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]
-1
View File
@@ -24,7 +24,6 @@ from pathlib import Path
from typing import Optional, TypedDict, Union from typing import Optional, TypedDict, Union
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.control import ifcopenshell.api.control
import ifcopenshell.api.cost import ifcopenshell.api.cost
import ifcopenshell.api.root import ifcopenshell.api.root
+3 -3
View File
@@ -25,7 +25,7 @@ import logging
import os import os
import time import time
from collections import Counter from collections import Counter
from typing import Any, Optional, TypedDict, Union from typing import Optional, TypedDict, Union
import ifcopenshell import ifcopenshell
import ifcopenshell.util.cost import ifcopenshell.util.cost
@@ -420,7 +420,7 @@ class Ifc5DCsvWriter(Ifc5Dwriter):
class Ifc5DOdsWriter(Ifc5Dwriter): class Ifc5DOdsWriter(Ifc5Dwriter):
def write(self) -> None: def write(self) -> None:
from odf.number import CurrencyStyle, CurrencySymbol, Number, NumberStyle, Text from odf.number import CurrencyStyle, CurrencySymbol, Number
from odf.opendocument import OpenDocumentSpreadsheet from odf.opendocument import OpenDocumentSpreadsheet
from odf.style import Style, TableCellProperties from odf.style import Style, TableCellProperties
@@ -450,7 +450,7 @@ class Ifc5DOdsWriter(Ifc5Dwriter):
self.doc.save(os.path.join(self.output, file_name), True) self.doc.save(os.path.join(self.output, file_name), True)
def write_table(self, cost_schedule): def write_table(self, cost_schedule):
from odf.number import CurrencyStyle, CurrencySymbol, Number, NumberStyle, Text from odf.number import CurrencySymbol, Number
from odf.table import Table, TableCell, TableRow from odf.table import Table, TableCell, TableRow
from odf.text import P from odf.text import P
-2
View File
@@ -27,7 +27,6 @@ from collections.abc import Iterable
from typing import Any, Literal, NamedTuple, Union, get_args from typing import Any, Literal, NamedTuple, Union, get_args
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.geom import ifcopenshell.geom
import ifcopenshell.ifcopenshell_wrapper as W import ifcopenshell.ifcopenshell_wrapper as W
@@ -35,7 +34,6 @@ import ifcopenshell.util.element
import ifcopenshell.util.representation import ifcopenshell.util.representation
import ifcopenshell.util.selector import ifcopenshell.util.selector
import ifcopenshell.util.shape import ifcopenshell.util.shape
import ifcopenshell.util.type
import ifcopenshell.util.unit import ifcopenshell.util.unit
+6
View File
@@ -35,3 +35,9 @@ exclude = ["test*"]
[tool.setuptools.package-data] [tool.setuptools.package-data]
"*" = ["*.*"] "*" = ["*.*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]
-1
View File
@@ -26,7 +26,6 @@ import ifcopenshell
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.unit import ifcopenshell.api.unit
import ifcopenshell.util.cost import ifcopenshell.util.cost
import ifcopenshell.util.element
import pytest import pytest
+1 -4
View File
@@ -29,14 +29,11 @@ from statistics import mean
from typing import Literal, Optional, Union from typing import Literal, Optional, Union
import ifcopenshell import ifcopenshell
import ifcopenshell.util.element
import ifcopenshell.util.schema
import ifcopenshell.util.selector import ifcopenshell.util.selector
try: try:
from odf.namespaces import OFFICENS from odf.namespaces import OFFICENS
from odf.opendocument import OpenDocumentSpreadsheet, load from odf.opendocument import load
from odf.style import Style, TableCellProperties
from odf.table import Table, TableCell, TableRow from odf.table import Table, TableCell, TableRow
from odf.text import P from odf.text import P
except: except:
+6
View File
@@ -26,3 +26,9 @@ Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
[tool.setuptools] [tool.setuptools]
py-modules = ["ifccsv"] py-modules = ["ifccsv"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]
-7
View File
@@ -16,11 +16,4 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell.util.element
import ifcopenshell.util.schema
import ifcopenshell.util.selector
import ifcpatch.__main__
import ifcpatch.recipes
import toposort
import ifcpatch
-1
View File
@@ -18,7 +18,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import collections
import importlib import importlib
import importlib.util import importlib.util
import inspect import inspect
-2
View File
@@ -19,9 +19,7 @@
import csv import csv
import os import os
from itertools import cycle
import ifcopenshell
import ifcopenshell.api.aggregate import ifcopenshell.api.aggregate
import ifcopenshell.api.context import ifcopenshell.api.context
import ifcopenshell.api.document import ifcopenshell.api.document
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import typing
from logging import Logger from logging import Logger
from typing import Union from typing import Union
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import typing
from logging import Logger from logging import Logger
from typing import Union from typing import Union
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import typing
from logging import Logger from logging import Logger
from typing import Union from typing import Union
@@ -21,10 +21,6 @@ from logging import Logger
from typing import Union from typing import Union
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.owner.settings
import ifcopenshell.util.element
import ifcopenshell.util.pset
import ifcopenshell.util.unit import ifcopenshell.util.unit
import ifcpatch import ifcpatch
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import ifcopenshell.guid import ifcopenshell.guid
@@ -20,9 +20,7 @@ from logging import Logger
from typing import Union from typing import Union
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.util.element
import ifcopenshell.util.pset import ifcopenshell.util.pset
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import ifcopenshell.util.element import ifcopenshell.util.element
@@ -20,7 +20,6 @@ from logging import Logger
from typing import Union from typing import Union
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.project import ifcopenshell.api.project
import ifcopenshell.guid import ifcopenshell.guid
import ifcopenshell.util.selector import ifcopenshell.util.selector
@@ -17,13 +17,8 @@
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import json
import os
import re
import tempfile import tempfile
import time
import ifcopenshell
import ifcopenshell.util.element import ifcopenshell.util.element
try: try:
@@ -18,8 +18,6 @@
import logging import logging
import math
import os
from typing import Union from typing import Union
import ifcopenshell import ifcopenshell
@@ -18,7 +18,6 @@
import logging import logging
import ifcopenshell
class Patcher: class Patcher:
@@ -70,7 +69,6 @@ class Patcher:
def patch(self) -> None: def patch(self) -> None:
import bonsai.tool as tool import bonsai.tool as tool
import bpy import bpy
import ifcopenshell
import ifcopenshell.util.element import ifcopenshell.util.element
from mathutils import Matrix, Vector from mathutils import Matrix, Vector
@@ -21,9 +21,7 @@ import logging
from typing import Optional from typing import Optional
import ifcopenshell import ifcopenshell
import ifcopenshell.util.schema
import ifcopenshell.util.shape_builder import ifcopenshell.util.shape_builder
import ifcopenshell.util.unit
class Patcher: class Patcher:
@@ -167,8 +165,6 @@ class Patcher:
import bpy import bpy
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.type
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.representation import ifcopenshell.util.representation
@@ -234,11 +230,8 @@ class Patcher:
import bmesh import bmesh
import bonsai.tool as tool import bonsai.tool as tool
import bpy
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.type
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.representation import ifcopenshell.util.representation
@@ -284,11 +277,8 @@ class Patcher:
import bmesh import bmesh
import bonsai.tool as tool import bonsai.tool as tool
import bpy
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.type
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.representation import ifcopenshell.util.representation
from mathutils import Matrix from mathutils import Matrix
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import ifcopenshell.util.element import ifcopenshell.util.element
@@ -19,7 +19,6 @@
import logging import logging
import ifcopenshell
class Patcher: class Patcher:
-2
View File
@@ -21,9 +21,7 @@ import itertools
import json import json
import logging import logging
import multiprocessing import multiprocessing
import os
import re import re
import tempfile
import time import time
import typing import typing
from pathlib import Path from pathlib import Path
@@ -20,7 +20,6 @@ from logging import Logger
from typing import Any from typing import Any
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.type import ifcopenshell.api.type
import ifcopenshell.util.element import ifcopenshell.util.element
-1
View File
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import typing
from logging import Logger from logging import Logger
from typing import Union from typing import Union
@@ -19,7 +19,6 @@
import math import math
import typing import typing
import ifcopenshell
import ifcopenshell.util.placement import ifcopenshell.util.placement
import numpy as np import numpy as np
from ifcopenshell.util.shape_builder import ShapeBuilder from ifcopenshell.util.shape_builder import ShapeBuilder
@@ -17,7 +17,6 @@
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell import ifcopenshell
import ifcopenshell.util.element
class Patcher: class Patcher:
@@ -1,4 +1,3 @@
import typing
from logging import Logger from logging import Logger
from typing import Union from typing import Union
@@ -17,7 +17,7 @@
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>. # along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
import logging import logging
from typing import Literal, Optional, Union from typing import Literal, Union
import ifcopenshell import ifcopenshell
import numpy as np import numpy as np
@@ -19,9 +19,7 @@
import logging import logging
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.util
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.placement import ifcopenshell.util.placement
import numpy as np import numpy as np
@@ -18,7 +18,6 @@
import typing import typing
import ifcopenshell
import ifcopenshell.api.georeference import ifcopenshell.api.georeference
import ifcopenshell.util.geolocation import ifcopenshell.util.geolocation
@@ -21,7 +21,6 @@ from logging import Logger
from typing import Union from typing import Union
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.geom import ifcopenshell.geom
import ifcopenshell.util.representation import ifcopenshell.util.representation
@@ -20,7 +20,6 @@ from logging import Logger
import ifcopenshell import ifcopenshell
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.guid
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.selector import ifcopenshell.util.selector
+8
View File
@@ -31,3 +31,11 @@ Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
include = ["ifcpatch*"] include = ["ifcpatch*"]
exclude = ["test*"] exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
[tool.ruff.lint]
select = [
"F401", # unused imports
]
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell.api
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.unit import ifcopenshell.api.unit
import ifcopenshell.util.unit import ifcopenshell.util.unit
@@ -19,7 +19,6 @@
import os import os
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.aggregate import ifcopenshell.api.aggregate
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.spatial import ifcopenshell.api.spatial
-9
View File
@@ -20,15 +20,6 @@ import tempfile
from pathlib import Path from pathlib import Path
import ifcopenshell import ifcopenshell
import ifcopenshell.api.context
import ifcopenshell.api.geometry
import ifcopenshell.api.georeference
import ifcopenshell.geom
import ifcopenshell.util.geolocation
import ifcopenshell.util.placement
import ifcopenshell.util.representation
import ifcopenshell.util.shape
import ifcopenshell.util.shape_builder
import ifcpatch import ifcpatch
@@ -16,17 +16,13 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import os
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.api.material import ifcopenshell.api.material
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.type import ifcopenshell.api.type
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.representation import ifcopenshell.util.representation
import pytest
import ifcpatch import ifcpatch
import test.bootstrap import test.bootstrap
-1
View File
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import ifcpatch import ifcpatch
import test.bootstrap import test.bootstrap
@@ -16,13 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import os
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.util.element
import pytest
import ifcpatch import ifcpatch
import test.bootstrap import test.bootstrap
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell.api
import ifcopenshell.api.aggregate import ifcopenshell.api.aggregate
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.api.root import ifcopenshell.api.root
-1
View File
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell.api
import ifcopenshell.api.aggregate import ifcopenshell.api.aggregate
import ifcopenshell.api.context import ifcopenshell.api.context
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
@@ -16,14 +16,10 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import ifcopenshell.api.context import ifcopenshell.api.context
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
import ifcopenshell.api.profile
import ifcopenshell.api.root import ifcopenshell.api.root
import ifcopenshell.api.unit import ifcopenshell.api.unit
import ifcopenshell.geom
import ifcopenshell.util.element
import ifcopenshell.util.representation import ifcopenshell.util.representation
from ifcopenshell.util.shape_builder import ShapeBuilder from ifcopenshell.util.shape_builder import ShapeBuilder
-1
View File
@@ -18,7 +18,6 @@
import ifcopenshell import ifcopenshell
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.geom
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcpatch import ifcpatch
+1 -1
View File
@@ -16,6 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcTester. If not, see <http://www.gnu.org/licenses/>. # along with IfcTester. If not, see <http://www.gnu.org/licenses/>.
from .ids import open from .ids import open as open
__version__ = version = "0.0.0" __version__ = version = "0.0.0"
-6
View File
@@ -28,16 +28,10 @@ from xmlschema import XMLSchema, etree_tostring
from xmlschema.validators.exceptions import XMLSchemaValidationError from xmlschema.validators.exceptions import XMLSchemaValidationError
from .facet import ( from .facet import (
Attribute,
Cardinality, Cardinality,
Classification,
Entity, Entity,
Facet, Facet,
FacetFailure, FacetFailure,
Material,
PartOf,
Property,
Restriction,
get_pset, get_pset,
get_psets, get_psets,
) )
+6
View File
@@ -32,3 +32,9 @@ exclude = ["test*"]
[tool.setuptools.package-data] [tool.setuptools.package-data]
"*" = ["*.*"] "*" = ["*.*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]
-1
View File
@@ -24,7 +24,6 @@ from pathlib import Path
from xml.dom.minidom import parseString from xml.dom.minidom import parseString
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.aggregate import ifcopenshell.api.aggregate
import ifcopenshell.api.context import ifcopenshell.api.context
import ifcopenshell.api.geometry import ifcopenshell.api.geometry
-1
View File
@@ -20,7 +20,6 @@
import uuid import uuid
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.aggregate import ifcopenshell.api.aggregate
import ifcopenshell.api.classification import ifcopenshell.api.classification
import ifcopenshell.api.group import ifcopenshell.api.group
-1
View File
@@ -20,7 +20,6 @@ import os
from typing import Optional from typing import Optional
import ifcopenshell import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.material import ifcopenshell.api.material
import pytest import pytest
import xmlschema import xmlschema
@@ -1,10 +1,7 @@
import xml.etree.ElementTree as ET
import ifcopenshell import ifcopenshell
import ifcopenshell.util
import ifcopenshell.util.attribute import ifcopenshell.util.attribute
import ifcopenshell.util.pset import ifcopenshell.util.pset
import ifcopenshell.util.schema
from ifctester.ids import Ids, IdsXmlValidationError, get_schema from ifctester.ids import Ids, IdsXmlValidationError, get_schema
from xmlschema.validators.exceptions import XMLSchemaValidationError from xmlschema.validators.exceptions import XMLSchemaValidationError
-1
View File
@@ -28,7 +28,6 @@
import inspect import inspect
import os import os
import shutil
import subprocess import subprocess
import sys import sys
from urllib.request import urlretrieve from urllib.request import urlretrieve