Migrate pre-commit hooks from pre-commit to prek
Replace the Python-based pre-commit framework with prek (Rust) for faster hook execution. Convert .pre-commit-config.yaml to prek.toml, remove pre-commit from dev dependencies, and apply ruff auto-fixes (UP037: remove unnecessary string quotes in type annotations). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,8 +19,8 @@ class Evolution(Base):
|
||||
) # catch-all for other conditions
|
||||
region: Mapped[str | None] = mapped_column(String(30))
|
||||
|
||||
from_pokemon: Mapped["Pokemon"] = relationship(foreign_keys=[from_pokemon_id])
|
||||
to_pokemon: Mapped["Pokemon"] = relationship(foreign_keys=[to_pokemon_id])
|
||||
from_pokemon: Mapped[Pokemon] = relationship(foreign_keys=[from_pokemon_id])
|
||||
to_pokemon: Mapped[Pokemon] = relationship(foreign_keys=[to_pokemon_id])
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"<Evolution(id={self.id}, from={self.from_pokemon_id}, to={self.to_pokemon_id}, trigger='{self.trigger}')>"
|
||||
|
||||
Reference in New Issue
Block a user