style: ruff format 4 video pipeline files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user