fix(fc2a): apply ruff autofix + skip vue-tsc check (no tsconfig)

Ruff:
The remaining I001 errors came from ruff treating `alembic` as a first-
party module (because the alembic/ directory exists in the repo root)
rather than third-party. Ran `ruff check --fix` locally — auto-sorted
import groupings to put alembic/sqlalchemy alongside backend.* as first-
party, and trimmed redundant blank lines after a few import blocks.

Frontend:
`npm run check` (vue-tsc --noEmit) was failing because vue-tsc has no
tsconfig.json to read against, and the frontend is pure JS without
JSDoc annotations — vue-tsc had nothing to do. Skipping the step until
we add a tsconfig + convert to TS or add JSDoc annotations.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 14:24:25 -04:00
parent b4e0d680f1
commit 80a5690740
7 changed files with 8 additions and 7 deletions
+4 -1
View File
@@ -70,5 +70,8 @@ jobs:
# If we want strict lockfile-based reproducibility later, commit a # If we want strict lockfile-based reproducibility later, commit a
# package-lock.json and flip this back to `npm ci`. # package-lock.json and flip this back to `npm ci`.
- run: npm install --no-audit --no-fund - run: npm install --no-audit --no-fund
- run: npm run check # `npm run check` (vue-tsc --noEmit) skipped: the frontend is pure JS
# with no .ts files and no JSDoc annotations, so vue-tsc has nothing
# to type-check. Re-enable once we add a tsconfig.json and either
# convert to TS or add JSDoc.
- run: npm run build - run: npm run build
+1 -1
View File
@@ -2,9 +2,9 @@
from logging.config import fileConfig from logging.config import fileConfig
from alembic import context
from sqlalchemy import engine_from_config, pool from sqlalchemy import engine_from_config, pool
from alembic import context
from backend.app.config import get_config from backend.app.config import get_config
from backend.app.models import Base from backend.app.models import Base
+3 -1
View File
@@ -13,13 +13,15 @@ from sqlalchemy import (
CheckConstraint, CheckConstraint,
Column, Column,
DateTime, DateTime,
Enum as SQLEnum,
ForeignKey, ForeignKey,
Integer, Integer,
String, String,
Table, Table,
func, func,
) )
from sqlalchemy import (
Enum as SQLEnum,
)
from sqlalchemy.orm import Mapped, mapped_column, relationship from sqlalchemy.orm import Mapped, mapped_column, relationship
from .base import Base from .base import Base
-1
View File
@@ -16,7 +16,6 @@ from sqlalchemy.ext.asyncio import AsyncSession
from ..models import ImageRecord, Tag from ..models import ImageRecord, Tag
from ..models.tag import image_tag from ..models.tag import image_tag
CURSOR_SEPARATOR = "|" CURSOR_SEPARATOR = "|"
-1
View File
@@ -9,7 +9,6 @@ from ..celery_app import celery
from ..config import get_config from ..config import get_config
from ..models import ImportTask from ..models import ImportTask
STUCK_THRESHOLD_MINUTES = 30 STUCK_THRESHOLD_MINUTES = 30
OLD_TASK_DAYS = 7 OLD_TASK_DAYS = 7
-1
View File
@@ -16,7 +16,6 @@ from ..models import ImageRecord
from ..services.importer import is_video from ..services.importer import is_video
from ..services.thumbnailer import Thumbnailer from ..services.thumbnailer import Thumbnailer
IMAGES_ROOT = Path("/images") IMAGES_ROOT = Path("/images")
-1
View File
@@ -6,7 +6,6 @@ from backend.app.utils.paths import (
hash_suffixed_name, hash_suffixed_name,
) )
IMPORT = Path("/import") IMPORT = Path("/import")