Line too long errors

This commit is contained in:
2026-05-25 02:27:39 +00:00
parent 6115a3ff0a
commit 6646068adc
10 changed files with 50 additions and 28 deletions
+3 -1
View File
@@ -143,7 +143,9 @@ def find_dev_tool() -> list[str]:
if name == "bun":
logger.warning(
"Bun has a bug in WS proxying (https://github.com/oven-sh/bun/issues/9882). Consider using npm instead."
"Bun has a bug in WS proxying "
"(https://github.com/oven-sh/bun/issues/9882). "
"Consider using npm instead."
)
return [tool, *dev_args[name]]
+12 -3
View File
@@ -1,4 +1,7 @@
"""Utilities meant for devserver script, used only in source repository with dev deps."""
"""Utilities for the devserver script in the source repository.
Used only with development dependencies.
"""
import asyncio
import subprocess
@@ -14,7 +17,10 @@ from fastapi_vue.hostutil import parse_endpoint
class ProcessGroup:
"""Manage async subprocesses with automatic cleanup, like TaskGroup for processes."""
"""Manage async subprocesses with automatic cleanup.
Acts like TaskGroup for processes.
"""
def __init__(self) -> None:
self._procs: list[asyncio.subprocess.Process] = []
@@ -98,7 +104,10 @@ class ProcessGroup:
async def check_ports_free(*urls: str) -> None:
"""Verify URLs are not responding (ports are free). Raise SystemExit if any respond."""
"""Verify URLs are not responding (ports are free).
Raise SystemExit if any endpoint responds.
"""
async def check(client: httpx.AsyncClient, url: str) -> None:
with suppress(httpx.RequestError):
+4 -2
View File
@@ -3,7 +3,8 @@
Usage:
uv run scripts/winbuild.py
This runs in the project environment where dependencies are available via pyproject.toml.
This runs in the project environment where dependencies
are available via pyproject.toml.
This script:
1. Reads the version from pyproject.toml
@@ -248,7 +249,8 @@ def main() -> None:
ensure_macos_icon()
else:
print(
"Skipping ffmpeg bundling on this platform (uses system ffmpeg if available)."
"Skipping ffmpeg bundling on this platform "
"(uses system ffmpeg if available)."
)
build_wheel()
build_executable()
+6 -3
View File
@@ -338,7 +338,8 @@ Examples:
print(f"\nDry run: {added} would be added, {skipped} already loaded")
else:
print(
f"\nRtorrent results: {added} added, {skipped} skipped, {failed} failed"
f"\nRtorrent results: {added} added, "
f"{skipped} skipped, {failed} failed"
)
# Clean up unregistered torrents from rtorrent
@@ -402,11 +403,13 @@ Examples:
print()
if dry_run:
print(
f"Dry run: {len(unregistered)} would be removed (rtorrent + .torrent + downloads)"
f"Dry run: {len(unregistered)} would be removed "
"(rtorrent + .torrent + downloads)"
)
else:
print(
f"Cleanup: {removed_from_rtorrent} from rtorrent, {removed_torrent_files} .torrents, {removed_downloads} downloads"
f"Cleanup: {removed_from_rtorrent} from rtorrent, "
f"{removed_torrent_files} .torrents, {removed_downloads} downloads"
)
else:
print("No unregistered torrents found.")