🚨 fix some linter warnings
Some checks failed
Python formatting PEP8 / Python-PEP8 (push) Failing after 13s

This commit is contained in:
Finn Christiansen 2023-08-11 22:47:08 +02:00
parent 44b73ab89d
commit a689b1c56d
4 changed files with 28 additions and 38 deletions

View file

@ -7,6 +7,8 @@ from alembic import context
import os
import sys
from dotenv import load_dotenv
from app.models import models
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
load_dotenv(os.path.join(BASE_DIR, ".env"))
sys.path.append(BASE_DIR)
@ -27,9 +29,8 @@ if config.config_file_name is not None:
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
#target_metadata = None
# target_metadata = None
from app.models import models
target_metadata = models.Base.metadata
# other values from the config, defined by the needs of env.py,