mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 16:22:53 +00:00
ruff - check for more unused imports
This commit is contained in:
@@ -24,7 +24,6 @@ from pathlib import Path
|
||||
from typing import Optional, TypedDict, Union
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.control
|
||||
import ifcopenshell.api.cost
|
||||
import ifcopenshell.api.root
|
||||
|
||||
@@ -25,7 +25,7 @@ import logging
|
||||
import os
|
||||
import time
|
||||
from collections import Counter
|
||||
from typing import Any, Optional, TypedDict, Union
|
||||
from typing import Optional, TypedDict, Union
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.cost
|
||||
@@ -420,7 +420,7 @@ class Ifc5DCsvWriter(Ifc5Dwriter):
|
||||
|
||||
class Ifc5DOdsWriter(Ifc5Dwriter):
|
||||
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.style import Style, TableCellProperties
|
||||
|
||||
@@ -450,7 +450,7 @@ class Ifc5DOdsWriter(Ifc5Dwriter):
|
||||
self.doc.save(os.path.join(self.output, file_name), True)
|
||||
|
||||
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.text import P
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ from collections.abc import Iterable
|
||||
from typing import Any, Literal, NamedTuple, Union, get_args
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.pset
|
||||
import ifcopenshell.geom
|
||||
import ifcopenshell.ifcopenshell_wrapper as W
|
||||
@@ -35,7 +34,6 @@ import ifcopenshell.util.element
|
||||
import ifcopenshell.util.representation
|
||||
import ifcopenshell.util.selector
|
||||
import ifcopenshell.util.shape
|
||||
import ifcopenshell.util.type
|
||||
import ifcopenshell.util.unit
|
||||
|
||||
|
||||
|
||||
@@ -35,3 +35,9 @@ exclude = ["test*"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"*" = ["*.*"]
|
||||
|
||||
[tool.ruff]
|
||||
extend = "../../pyproject.toml"
|
||||
lint.select = [
|
||||
"F401", # unused imports
|
||||
]
|
||||
|
||||
@@ -26,7 +26,6 @@ import ifcopenshell
|
||||
import ifcopenshell.api.root
|
||||
import ifcopenshell.api.unit
|
||||
import ifcopenshell.util.cost
|
||||
import ifcopenshell.util.element
|
||||
import pytest
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user