style: ruff format 4 video pipeline files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yusyus
2026-03-01 19:48:02 +03:00
parent 0396dcc5c0
commit 4b19cf4836
4 changed files with 100 additions and 44 deletions

View File

@@ -148,9 +148,16 @@ class SourceDetector:
lower = source.lower()
# YouTube patterns
youtube_keywords = ["youtube.com/watch", "youtu.be/", "youtube.com/playlist",
"youtube.com/@", "youtube.com/channel/", "youtube.com/c/",
"youtube.com/shorts/", "youtube.com/embed/"]
youtube_keywords = [
"youtube.com/watch",
"youtu.be/",
"youtube.com/playlist",
"youtube.com/@",
"youtube.com/channel/",
"youtube.com/c/",
"youtube.com/shorts/",
"youtube.com/embed/",
]
if any(kw in lower for kw in youtube_keywords):
# Determine suggested name
if "playlist" in lower:

View File

@@ -84,9 +84,7 @@ def check_video_dependencies(require_full: bool = False) -> None:
deps = ", ".join(missing)
extra = "[video-full]" if require_full else "[video]"
setup_hint = (
"\nFor visual deps (GPU-aware): skill-seekers video --setup"
if require_full
else ""
"\nFor visual deps (GPU-aware): skill-seekers video --setup" if require_full else ""
)
raise RuntimeError(
f"Missing video dependencies: {deps}\n"

View File

@@ -463,9 +463,7 @@ def install_torch(gpu_info: GPUInfo, python_exe: str | None = None) -> bool:
return False
def install_visual_deps(
modules: SetupModules | None = None, python_exe: str | None = None
) -> bool:
def install_visual_deps(modules: SetupModules | None = None, python_exe: str | None = None) -> bool:
"""Install visual extraction dependencies.
Returns True on success, False on failure.
@@ -672,9 +670,7 @@ def run_setup(interactive: bool = True) -> int:
venv_path = ".venv"
if interactive:
try:
answer = input(
f" Create venv at ./{venv_path}? [Y/n] "
).strip().lower()
answer = input(f" Create venv at ./{venv_path}? [Y/n] ").strip().lower()
except (EOFError, KeyboardInterrupt):
print("\nSetup cancelled.")
return 1
@@ -785,7 +781,9 @@ def run_setup(interactive: bool = True) -> int:
print(" Installing PyTorch...")
if not install_torch(gpu_info, python_exe):
print(" FAILED: PyTorch installation failed.")
print(f" Try: {python_exe} -m pip install torch torchvision --index-url {gpu_info.index_url}")
print(
f" Try: {python_exe} -m pip install torch torchvision --index-url {gpu_info.index_url}"
)
return 1
print(" PyTorch installed.")