From b1bd2531add8f7468adf4856c495fa9f03742d21 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 31 Aug 2026 00:38:46 -0400 Subject: [PATCH] style: sort JSON first in three sqlalchemy import blocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ruff's isort runs with order-by-type, which sorts ALL_CAPS names ahead of CamelCase ones, so `JSON` belongs at the head of the list rather than between `Integer` and `String`. Two of these (backup_run.py, post.py) have been failing lint since 5e1996e — I did not check the push CI after that commit, only the baseline workflow I had dispatched, so ci.yml has been red on dev across 5e1996e, ed2b1ad and d044e93. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_017QHszn9H8VBvx5Ke8x1hvw --- backend/app/models/backup_run.py | 2 +- backend/app/models/post.py | 2 +- backend/app/models/source.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/models/backup_run.py b/backend/app/models/backup_run.py index ad7b4f0..787e78c 100644 --- a/backend/app/models/backup_run.py +++ b/backend/app/models/backup_run.py @@ -20,7 +20,7 @@ feedback_check_existing_enums): from datetime import datetime -from sqlalchemy import BigInteger, DateTime, ForeignKey, Index, Integer, JSON, String, Text, text +from sqlalchemy import JSON, BigInteger, DateTime, ForeignKey, Index, Integer, String, Text, text from sqlalchemy.orm import Mapped, mapped_column from .base import Base diff --git a/backend/app/models/post.py b/backend/app/models/post.py index 6b4ec33..e3f8e5e 100644 --- a/backend/app/models/post.py +++ b/backend/app/models/post.py @@ -9,12 +9,12 @@ artist-filter queries don't depend on the Source detour). from datetime import datetime from sqlalchemy import ( + JSON, CheckConstraint, DateTime, ForeignKey, Index, Integer, - JSON, String, Text, UniqueConstraint, diff --git a/backend/app/models/source.py b/backend/app/models/source.py index 8538bda..3501505 100644 --- a/backend/app/models/source.py +++ b/backend/app/models/source.py @@ -6,11 +6,11 @@ Multiple sources per artist support creators with cross-platform presence. from datetime import datetime from sqlalchemy import ( + JSON, Boolean, DateTime, ForeignKey, Integer, - JSON, String, Text, UniqueConstraint,