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:
Andrej730
2026-08-10 16:06:30 +05:00
parent 321760cea4
commit daa7d98b3f
19 changed files with 35 additions and 50 deletions
+3 -12
View File
@@ -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")
+1 -1
View File
@@ -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: