Skip to content
Snippets Groups Projects
Commit 550c9e33 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Fix flake8 errors

parent 5b586fb5
No related branches found
No related tags found
No related merge requests found
[flake8]
# E501: let black handle line length
# W503 is incompatible with PEP 8
ignore = E501,W503
......@@ -3,6 +3,7 @@ from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import logging
from flask import current_app
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
......@@ -13,12 +14,6 @@ config = context.config
fileConfig(config.config_file_name)
logger = logging.getLogger("alembic.env")
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
from flask import current_app
config.set_main_option(
"sqlalchemy.url", current_app.config.get("SQLALCHEMY_DATABASE_URI")
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment