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
View File
@@ -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
+3 -3
View File
@@ -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
-2
View File
@@ -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
+6
View File
@@ -35,3 +35,9 @@ exclude = ["test*"]
[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.unit
import ifcopenshell.util.cost
import ifcopenshell.util.element
import pytest