test(doctor): hoist the openvino import to module scope

The pre-push pylint gate flagged it; the score was already 10.00 but the hook
exits nonzero on any message, which is the behaviour we want.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-13 15:47:41 -05:00
co-authored by Claude Opus 5
parent c844781d1e
commit 3ac070468a
+2 -2
View File
@@ -8,6 +8,8 @@ import subprocess
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar, NamedTuple
import openvino as ov
from ccn_transcribe import doctor
from ccn_transcribe.backends import probe
from ccn_transcribe.media import ffmpeg, ytdlp_opts
@@ -62,8 +64,6 @@ class TestOpenvino:
) -> None:
# README section 7: clinfo working while OpenVINO shows only CPU is a
# plugin problem, not a driver problem.
import openvino as ov
class Core:
available_devices: ClassVar[list[str]] = ["CPU"]