diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 1cb5e7d..e26fc61 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -70,5 +70,8 @@ jobs: # If we want strict lockfile-based reproducibility later, commit a # package-lock.json and flip this back to `npm ci`. - 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 diff --git a/alembic/env.py b/alembic/env.py index 9cabe10..0530946 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -2,9 +2,9 @@ from logging.config import fileConfig -from alembic import context from sqlalchemy import engine_from_config, pool +from alembic import context from backend.app.config import get_config from backend.app.models import Base diff --git a/backend/app/models/tag.py b/backend/app/models/tag.py index 14be164..c99fc06 100644 --- a/backend/app/models/tag.py +++ b/backend/app/models/tag.py @@ -13,13 +13,15 @@ from sqlalchemy import ( CheckConstraint, Column, DateTime, - Enum as SQLEnum, ForeignKey, Integer, String, Table, func, ) +from sqlalchemy import ( + Enum as SQLEnum, +) from sqlalchemy.orm import Mapped, mapped_column, relationship from .base import Base diff --git a/backend/app/services/gallery_service.py b/backend/app/services/gallery_service.py index 1aef465..88d11eb 100644 --- a/backend/app/services/gallery_service.py +++ b/backend/app/services/gallery_service.py @@ -16,7 +16,6 @@ from sqlalchemy.ext.asyncio import AsyncSession from ..models import ImageRecord, Tag from ..models.tag import image_tag - CURSOR_SEPARATOR = "|" diff --git a/backend/app/tasks/maintenance.py b/backend/app/tasks/maintenance.py index 376d46f..05dcc4e 100644 --- a/backend/app/tasks/maintenance.py +++ b/backend/app/tasks/maintenance.py @@ -9,7 +9,6 @@ from ..celery_app import celery from ..config import get_config from ..models import ImportTask - STUCK_THRESHOLD_MINUTES = 30 OLD_TASK_DAYS = 7 diff --git a/backend/app/tasks/thumbnail.py b/backend/app/tasks/thumbnail.py index a5b9dcd..68fa665 100644 --- a/backend/app/tasks/thumbnail.py +++ b/backend/app/tasks/thumbnail.py @@ -16,7 +16,6 @@ from ..models import ImageRecord from ..services.importer import is_video from ..services.thumbnailer import Thumbnailer - IMAGES_ROOT = Path("/images") diff --git a/tests/test_paths.py b/tests/test_paths.py index 9856fb5..2976d1e 100644 --- a/tests/test_paths.py +++ b/tests/test_paths.py @@ -6,7 +6,6 @@ from backend.app.utils.paths import ( hash_suffixed_name, ) - IMPORT = Path("/import")