Enabled all Ruff lint rules and resolved findings with justified inline suppressions.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 14s
CI / Tests (Python 3.13) (push) Successful in 14s
CI / Tests (Python 3.14) (push) Successful in 11s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 5s
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 14s
CI / Tests (Python 3.13) (push) Successful in 14s
CI / Tests (Python 3.14) (push) Successful in 11s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 5s
This commit is contained in:
@@ -20,6 +20,7 @@ stream in real time and provides a browser-based clip editor.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
@@ -95,7 +96,7 @@ async def setup(ctx: ModuleContext) -> None:
|
||||
processor = VideoProcessor(ctx.logger)
|
||||
|
||||
clips_dir = Path(str(ctx.config.get("clips_dir")))
|
||||
clips_dir.mkdir(parents=True, exist_ok=True) # noqa: ASYNC240
|
||||
await asyncio.to_thread(clips_dir.mkdir, parents=True, exist_ok=True)
|
||||
|
||||
manager = ClipManager(ctx, repo, processor, clips_dir)
|
||||
ctx.state["manager"] = manager
|
||||
@@ -106,7 +107,7 @@ async def setup(ctx: ModuleContext) -> None:
|
||||
if status.get("online", False):
|
||||
ctx.logger.info("Stream is already live. Starting HLS cache.")
|
||||
await manager.start_caching()
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 # best-effort; non-fatal if Owncast is unreachable during setup
|
||||
ctx.logger.warning(
|
||||
"Could not check Owncast status during setup.", exc_info=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user