From 82c2ca0345cdd3dd89f2a7c8cc7fa35f79eb0ebd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:15:28 +0530 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#429) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- boxoffice/models/user.py | 1 - migrations/env.py | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0a15be2b..c0d789f52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: additional_dependencies: - toml - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/boxoffice/models/user.py b/boxoffice/models/user.py index 322d6991a..9cea47700 100644 --- a/boxoffice/models/user.py +++ b/boxoffice/models/user.py @@ -12,7 +12,6 @@ class User(UserBase2, db.Model): - __tablename__ = 'user' def __repr__(self): diff --git a/migrations/env.py b/migrations/env.py index 2f80aa761..595aaa88f 100644 --- a/migrations/env.py +++ b/migrations/env.py @@ -57,6 +57,7 @@ def run_migrations_online(): and associate a connection with the context. """ + # this callback is used to prevent an auto-migration from being generated # when there are no changes to the schema # reference: http://alembic.readthedocs.org/en/latest/cookbook.html