From 3ac070468adaaa49517d6def475af7e7b08a7fd7 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Sun, 13 Sep 2026 15:47:41 -0500 Subject: [PATCH] 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) --- tests/test_doctor_failures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_doctor_failures.py b/tests/test_doctor_failures.py index 6e3fc92..eb4b605 100644 --- a/tests/test_doctor_failures.py +++ b/tests/test_doctor_failures.py @@ -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"]