mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 14:28:12 +00:00
ruff: remove unused noqa
Most of them are actually correct, but they're not enforced in general on the repo, so using them blocks us from flagging `unused-noqa` for rules that we actually do use.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import base64
|
||||
import importlib.util
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -19,19 +20,9 @@ import pytest
|
||||
|
||||
from ifcquery.plot import _highlight_css_from_ids, plot
|
||||
|
||||
try:
|
||||
import ifcopenshell.draw # noqa: F401
|
||||
HAS_DRAW = importlib.util.find_spec("ifcopenshell.draw") is not None
|
||||
|
||||
HAS_DRAW = True
|
||||
except ImportError:
|
||||
HAS_DRAW = False
|
||||
|
||||
try:
|
||||
import cairosvg # noqa: F401
|
||||
|
||||
HAS_CAIROSVG = True
|
||||
except ImportError:
|
||||
HAS_CAIROSVG = False
|
||||
HAS_CAIROSVG = importlib.util.find_spec("cairosvg") is not None
|
||||
|
||||
pytestmark = pytest.mark.skipif(not HAS_DRAW, reason="ifcopenshell.draw not available")
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import pytest
|
||||
from ifcquery.render import _make_profile_occurrence, _make_type_occurrence, render
|
||||
|
||||
try:
|
||||
import pyvista # noqa: F401
|
||||
import pyvista
|
||||
|
||||
HAS_PYVISTA = True
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user