style: models 패키지 ruff 위반 정리 (import 정렬, 불필요한 따옴표 타입)
.gitignore 가 src/livesub/models 를 통째로 무시하던 동안 이 8개 파일 1,674줄은 커밋에서만 빠진 게 아니라 ruff 검사 범위에서도 빠져 있었다 (ruff 는 기본적으로 .gitignore 를 존중한다). 추적 대상이 되면서 처음 검사에 들어와 나온 2건이다. 같은 파일들에 대해 확인한 것: 프로젝트 룰셋 통과, 전체 룰(--select ALL) 감사에서 정확성 계열(F/E9/PLE) 위반 없음 — 남는 건 프로젝트가 켜지 않은 문서화/스타일 룰뿐, 7개 모듈 import 스모크 전부 통과, tests 10개 파일이 이미 models 를 임포트해 실행 범위에는 들어 있었다.
This commit is contained in:
@@ -3,6 +3,13 @@
|
||||
from .asr import SpeechRecognizer, Transcript
|
||||
from .glossary import Glossary, GlossaryEntry
|
||||
from .manager import GpuInfo, ModelManager, detect_gpu
|
||||
from .speech_level import (
|
||||
Politeness,
|
||||
SpeechLevel,
|
||||
apply_speech_level,
|
||||
detect_politeness,
|
||||
to_casual,
|
||||
)
|
||||
from .tiers import (
|
||||
DEFAULT_TIER,
|
||||
TIERS,
|
||||
@@ -12,13 +19,6 @@ from .tiers import (
|
||||
get_tier,
|
||||
ordered_tiers,
|
||||
)
|
||||
from .speech_level import (
|
||||
Politeness,
|
||||
SpeechLevel,
|
||||
apply_speech_level,
|
||||
detect_politeness,
|
||||
to_casual,
|
||||
)
|
||||
from .translator import Translator, build_seedx_prompt, create_translator
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -64,7 +64,7 @@ class Glossary:
|
||||
|
||||
# --- 영속화 --------------------------------------------------------
|
||||
@classmethod
|
||||
def load(cls, path: str | Path, case_sensitive: bool = False) -> "Glossary":
|
||||
def load(cls, path: str | Path, case_sensitive: bool = False) -> Glossary:
|
||||
p = Path(path)
|
||||
if not p.is_file():
|
||||
return cls(case_sensitive=case_sensitive)
|
||||
|
||||
Reference in New Issue
Block a user