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:
@@ -14,7 +14,9 @@ class Evolution(Base):
|
||||
min_level: Mapped[int | None] = mapped_column(SmallInteger)
|
||||
item: Mapped[str | None] = mapped_column(String(50)) # e.g. thunder-stone
|
||||
held_item: Mapped[str | None] = mapped_column(String(50))
|
||||
condition: Mapped[str | None] = mapped_column(String(200)) # catch-all for other conditions
|
||||
condition: Mapped[str | None] = mapped_column(
|
||||
String(200)
|
||||
) # catch-all for other conditions
|
||||
region: Mapped[str | None] = mapped_column(String(30))
|
||||
|
||||
from_pokemon: Mapped["Pokemon"] = relationship(foreign_keys=[from_pokemon_id])
|
||||
|
||||
Reference in New Issue
Block a user