Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ output_encoding = utf-8


[post_write_hooks]
hooks = black,autoflake,isort
hooks = black,ruff

black.type = console_scripts
black.entrypoint = black

autoflake.type = console_scripts
autoflake.entrypoint = autoflake

isort.type = console_scripts
isort.entrypoint = isort
ruff.type = exec
ruff.executable = ruff
ruff.options = check --fix REVISION_SCRIPT_FILENAME --ignore N999

# Logging configuration
[loggers]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""${message}
"""${message}${"." if not message.endswith(".") else ""}

Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Expand All @@ -17,8 +17,10 @@ depends_on = ${repr(depends_on)}


def upgrade() -> None:
${upgrades if upgrades else "pass"}
"""Run the migration."""
${upgrades if upgrades else ""}


def downgrade() -> None:
${downgrades if downgrades else "pass"}
"""Undo the migration."""
${downgrades if downgrades else ""}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

"""


# revision identifiers, used by Alembic.
revision = "819cbf6e030b"
down_revision = None
Expand All @@ -15,8 +14,8 @@


def upgrade() -> None:
pass
"""Run the upgrade migrations."""


def downgrade() -> None:
pass
"""Run the downgrade migrations."""
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
"""Run the upgrade migrations."""
op.create_table(
"dummy_model",
sa.Column("id", sa.Integer(), nullable=False),
Expand All @@ -27,6 +27,6 @@ def upgrade() -> None:


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
"""Run the downgrade migrations."""
op.drop_table("dummy_model")
# ### end Alembic commands ###
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""${message}
"""${message}${"." if not message.endswith(".") else ""}

Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Expand All @@ -17,8 +17,10 @@ depends_on = ${repr(depends_on)}


def upgrade() -> None:
${upgrades if upgrades else "pass"}
"""Run the migration."""
${upgrades if upgrades else ""}


def downgrade() -> None:
${downgrades if downgrades else "pass"}
"""Undo the migration."""
${downgrades if downgrades else ""}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@


def upgrade() -> None:
"""Run the upgrade migrations."""
pass


def downgrade() -> None:
"""Run the downgrade migrations."""
pass
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
"""Run the upgrade migrations."""
op.create_table(
"dummy_model",
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False),
Expand All @@ -27,6 +27,6 @@ def upgrade() -> None:


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
"""Run the downgrade migrations."""
op.drop_table("dummy_model")
# ### end Alembic commands ###
Loading