Fix linting errors across backend and frontend
Backend: auto-fix and format all ruff issues, manually fix B904/B023/ SIM117/B007/E741/F841 errors, suppress B008 (FastAPI Depends) and F821 (SQLAlchemy forward refs) in config. Frontend: allow constant exports, disable React compiler-specific rules (set-state-in-effect, preserve-manual-memoization). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,9 @@ class Game(Base):
|
||||
slug: Mapped[str] = mapped_column(String(100), unique=True)
|
||||
generation: Mapped[int] = mapped_column(SmallInteger)
|
||||
region: Mapped[str] = mapped_column(String(50))
|
||||
category: Mapped[str | None] = mapped_column(String(20)) # original, remake, enhanced, sequel, spinoff
|
||||
category: Mapped[str | None] = mapped_column(
|
||||
String(20)
|
||||
) # original, remake, enhanced, sequel, spinoff
|
||||
box_art_url: Mapped[str | None] = mapped_column(String(500))
|
||||
release_year: Mapped[int | None] = mapped_column(SmallInteger)
|
||||
color: Mapped[str | None] = mapped_column(String(7)) # Hex color e.g. #FF0000
|
||||
@@ -20,9 +22,7 @@ class Game(Base):
|
||||
ForeignKey("version_groups.id"), index=True
|
||||
)
|
||||
|
||||
version_group: Mapped["VersionGroup | None"] = relationship(
|
||||
back_populates="games"
|
||||
)
|
||||
version_group: Mapped["VersionGroup | None"] = relationship(back_populates="games")
|
||||
runs: Mapped[list["NuzlockeRun"]] = relationship(back_populates="game")
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user