style: apply ruff format across backend + scripts (line-length 100)

Mechanical, whole-tree `ruff format` pass — no behaviour change. Recorded in
.git-blame-ignore-revs (next commit) so git blame skips it.
This commit is contained in:
2026-08-23 07:43:06 +02:00
parent 434a98d6ed
commit b1832afd18
217 changed files with 3149 additions and 1744 deletions
+52 -15
View File
@@ -7,6 +7,7 @@ Everywhere, that `all` is unchanged from the pre-scope behaviour, and that the E
the movie/show grid and only applies where shows are in scope. DB lane (`db` fixture) — skipped
without Postgres (the `search_vector` GIN + per-field `to_tsvector` recheck are real Postgres FTS).
"""
from datetime import datetime, timezone
import app.state as state
@@ -36,26 +37,62 @@ def _seed(db):
show_lib = PlexLibrary(plex_key="2", title="Shows", kind="show", enabled=True)
db.add_all([movie_lib, show_lib])
db.flush()
mt = PlexItem(rating_key="mt", library_id=movie_lib.id, kind="movie",
title="Zephyr Rising", people_text="Alice Stone", summary="A calm coastal day.",
year=2001, added_at=_dt(1))
mp = PlexItem(rating_key="mp", library_id=movie_lib.id, kind="movie",
title="Quiet Harbor", people_text="Zephyr Vance", summary="A calm coastal day.",
year=2002, added_at=_dt(2))
ms = PlexItem(rating_key="ms", library_id=movie_lib.id, kind="movie",
title="Quiet Harbor Two", people_text="Alice Stone",
summary="A story about zephyr winds.", year=2003, added_at=_dt(3))
show = PlexShow(rating_key="s1", library_id=show_lib.id, title="Nimbus Show",
summary="Weather anthology.", people_text="Bob Cloud",
year=2004, added_at=_dt(4), child_count=1)
mt = PlexItem(
rating_key="mt",
library_id=movie_lib.id,
kind="movie",
title="Zephyr Rising",
people_text="Alice Stone",
summary="A calm coastal day.",
year=2001,
added_at=_dt(1),
)
mp = PlexItem(
rating_key="mp",
library_id=movie_lib.id,
kind="movie",
title="Quiet Harbor",
people_text="Zephyr Vance",
summary="A calm coastal day.",
year=2002,
added_at=_dt(2),
)
ms = PlexItem(
rating_key="ms",
library_id=movie_lib.id,
kind="movie",
title="Quiet Harbor Two",
people_text="Alice Stone",
summary="A story about zephyr winds.",
year=2003,
added_at=_dt(3),
)
show = PlexShow(
rating_key="s1",
library_id=show_lib.id,
title="Nimbus Show",
summary="Weather anthology.",
people_text="Bob Cloud",
year=2004,
added_at=_dt(4),
child_count=1,
)
db.add_all([mt, mp, ms, show])
db.flush()
season = PlexSeason(rating_key="se1", show_id=show.id, season_number=1)
db.add(season)
db.flush()
ep = PlexItem(rating_key="ep", library_id=show_lib.id, kind="episode", title="Zephyr Episode",
show_id=show.id, season_id=season.id, season_number=1, episode_number=1,
added_at=_dt(5))
ep = PlexItem(
rating_key="ep",
library_id=show_lib.id,
kind="episode",
title="Zephyr Episode",
show_id=show.id,
season_id=season.id,
season_number=1,
episode_number=1,
added_at=_dt(5),
)
db.add(ep)
user = User(email="plexfield@example.com")
db.add(user)