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
-2
View File
@@ -1,6 +1,4 @@
import argparse
import os
import sys
import ifcopenshell
from ifc4d.msp2ifc import MSP2Ifc
-2
View File
@@ -4,11 +4,9 @@ from datetime import date, datetime, timedelta
from typing import Any, TypedDict, Union
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.control
import ifcopenshell.api.resource
import ifcopenshell.api.sequence
import ifcopenshell.util.date
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
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.cost
import ifcopenshell.api.pset
import ifcopenshell.api.resource
@@ -33,7 +32,6 @@ import ifcopenshell.api.unit
import ifcopenshell.util.date
import ifcopenshell.util.element
import ifcopenshell.util.resource
import ifcopenshell.util.unit
import isodate
SUPPORTED_COLUMN = Literal[
-1
View File
@@ -22,7 +22,6 @@ import locale
import re
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.root
import ifcopenshell.api.sequence
import ifcopenshell.util.date
-1
View File
@@ -24,7 +24,6 @@ import ifcopenshell
import ifcopenshell.util.date
import ifcopenshell.util.sequence
from .common import ScheduleIfcGenerator
class Ifc2P6:
+1 -2
View File
@@ -18,10 +18,9 @@
import datetime
import xml.etree.ElementTree as ET
from datetime import date, timedelta
from datetime import timedelta
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.control
import ifcopenshell.api.pset
import ifcopenshell.api.root
-4
View File
@@ -17,12 +17,8 @@
# along with Ifc4D. If not, see <http://www.gnu.org/licenses/>.
import datetime
import math
import xml.etree.ElementTree as ET
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.util.date
from .common import ScheduleIfcGenerator
-4
View File
@@ -16,11 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# 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 .common import ScheduleIfcGenerator
-1
View File
@@ -12,7 +12,6 @@ from collections import defaultdict
from datetime import timedelta
from typing import Any
import ifcopenshell.util.date
from .common import Activity, Calendar, ScheduleIfcGenerator, WBSEntry
from .wpattern import AstaCalendarWorkPattern
+6
View File
@@ -28,3 +28,9 @@ Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
[tool.setuptools.packages.find]
include = ["ifc4d"]
exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.select = [
"F401", # unused imports
]