Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 26, 2024
1 parent f2ae1f7 commit c964335
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions robyn/scaffold/simple/sqlalchemy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ class User(Base):
hashed_password = Column(String)
is_active = Column(Boolean, default=True)
is_superuser = Column(Boolean, default=False)


Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from user import Base as user

metadata = [
user.metadata
]
metadata = [user.metadata]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
from pydantic import BaseModel


class Base(DeclarativeBase):
pass

Expand Down
2 changes: 1 addition & 1 deletion robyn/scaffold/structured/sqlalchemy/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# target_metadata = mymodel.Base.metadata
from adaptors import models

target_metadata = models.metadata
target_metadata = models.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
Expand Down

0 comments on commit c964335

Please sign in to comment.