ruff: use readable rule names in ignores

This commit is contained in:
Andrej730
2026-08-10 16:13:33 +05:00
parent b6dccce12a
commit 109bd58384
9 changed files with 14 additions and 12 deletions
@@ -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: