mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-15 18:14:08 +00:00
ruff - check for more unused imports
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
import ifcopenshell
|
||||
from ifc4d.msp2ifc import MSP2Ifc
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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[
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -24,7 +24,6 @@ import ifcopenshell
|
||||
import ifcopenshell.util.date
|
||||
import ifcopenshell.util.sequence
|
||||
|
||||
from .common import ScheduleIfcGenerator
|
||||
|
||||
|
||||
class Ifc2P6:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user