From b447c42853930e62ec3616fb12cd593317a5d4de Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 27 May 2026 19:52:50 -0400 Subject: [PATCH] =?UTF-8?q?fix(platforms):=20ruff=20I001=20=E2=80=94=20dro?= =?UTF-8?q?p=20unused=20=5F=5Ffuture=5F=5F=20import;=20switch=20=5F=5Finit?= =?UTF-8?q?=5F=5F=20to=20per-module=20imports=20for=20clean=20isort=20orde?= =?UTF-8?q?ring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/services/platforms/__init__.py | 27 ++++++++++------------ backend/app/services/platforms/base.py | 2 -- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/backend/app/services/platforms/__init__.py b/backend/app/services/platforms/__init__.py index 4bd85be..822276a 100644 --- a/backend/app/services/platforms/__init__.py +++ b/backend/app/services/platforms/__init__.py @@ -13,30 +13,27 @@ URL patterns match GS exactly so the existing browser extension hits FC unmodified. """ -from . import ( - deviantart, - discord, - hentaifoundry, - patreon, - pixiv, - subscribestar, -) from .base import ( DEFAULT_DESCRIPTION_KEYS, DEFAULT_EXTERNAL_POST_ID_KEYS, PlatformInfo, ) - +from .deviantart import INFO as _DEVIANTART +from .discord import INFO as _DISCORD +from .hentaifoundry import INFO as _HENTAIFOUNDRY +from .patreon import INFO as _PATREON +from .pixiv import INFO as _PIXIV +from .subscribestar import INFO as _SUBSCRIBESTAR PLATFORMS: dict[str, PlatformInfo] = { info.key: info for info in ( - patreon.INFO, - subscribestar.INFO, - hentaifoundry.INFO, - discord.INFO, - pixiv.INFO, - deviantart.INFO, + _PATREON, + _SUBSCRIBESTAR, + _HENTAIFOUNDRY, + _DISCORD, + _PIXIV, + _DEVIANTART, ) } diff --git a/backend/app/services/platforms/base.py b/backend/app/services/platforms/base.py index 8c496d5..a700871 100644 --- a/backend/app/services/platforms/base.py +++ b/backend/app/services/platforms/base.py @@ -12,8 +12,6 @@ materialization, and the /api/platforms response pick it up automatically. """ -from __future__ import annotations - from collections.abc import Callable from dataclasses import dataclass from typing import Literal