mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
ruff: use readable rule names in ignores
This commit is contained in:
@@ -40,7 +40,7 @@ def _has_occ():
|
||||
pass
|
||||
|
||||
try:
|
||||
import OCC.BRepTools # noqa: F401 # pyright: ignore[reportMissingImports] # ty:ignore[unresolved-import]
|
||||
import OCC.BRepTools # ruff: ignore[unused-import] # pyright: ignore[reportMissingImports] # ty:ignore[unresolved-import]
|
||||
|
||||
return True
|
||||
except ImportError:
|
||||
@@ -52,6 +52,6 @@ def _has_occ():
|
||||
has_occ = _has_occ()
|
||||
|
||||
if has_occ:
|
||||
from . import occ_utils as utils # noqa: F401
|
||||
from . import occ_utils as utils # ruff: ignore[unused-import]
|
||||
|
||||
from .main import *
|
||||
|
||||
@@ -25,7 +25,7 @@ import time
|
||||
import ifcopenshell.ifcopenshell_wrapper as W
|
||||
|
||||
try:
|
||||
from OCC.Core import AIS # noqa: F401
|
||||
from OCC.Core import AIS # ruff: ignore[unused-import]
|
||||
|
||||
USE_OCCT_HANDLE = False
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user