mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
ruff - check for more unused imports
This commit is contained in:
@@ -16,6 +16,6 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# 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"
|
||||
|
||||
@@ -28,16 +28,10 @@ from xmlschema import XMLSchema, etree_tostring
|
||||
from xmlschema.validators.exceptions import XMLSchemaValidationError
|
||||
|
||||
from .facet import (
|
||||
Attribute,
|
||||
Cardinality,
|
||||
Classification,
|
||||
Entity,
|
||||
Facet,
|
||||
FacetFailure,
|
||||
Material,
|
||||
PartOf,
|
||||
Property,
|
||||
Restriction,
|
||||
get_pset,
|
||||
get_psets,
|
||||
)
|
||||
|
||||
@@ -32,3 +32,9 @@ exclude = ["test*"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"*" = ["*.*"]
|
||||
|
||||
[tool.ruff]
|
||||
extend = "../../pyproject.toml"
|
||||
lint.select = [
|
||||
"F401", # unused imports
|
||||
]
|
||||
|
||||
@@ -24,7 +24,6 @@ from pathlib import Path
|
||||
from xml.dom.minidom import parseString
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.aggregate
|
||||
import ifcopenshell.api.context
|
||||
import ifcopenshell.api.geometry
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
import uuid
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.aggregate
|
||||
import ifcopenshell.api.classification
|
||||
import ifcopenshell.api.group
|
||||
|
||||
@@ -20,7 +20,6 @@ import os
|
||||
from typing import Optional
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.material
|
||||
import pytest
|
||||
import xmlschema
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util
|
||||
import ifcopenshell.util.attribute
|
||||
import ifcopenshell.util.pset
|
||||
import ifcopenshell.util.schema
|
||||
from ifctester.ids import Ids, IdsXmlValidationError, get_schema
|
||||
from xmlschema.validators.exceptions import XMLSchemaValidationError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user