Migrate to ruff

This commit is contained in:
2023-01-08 00:08:00 +01:00
parent 537e28d904
commit 06fcdfd83a
16 changed files with 657 additions and 342 deletions

View File

@@ -1,4 +1,3 @@
from logging.config import fileConfig
import os
import sys
@@ -7,15 +6,13 @@ from sqlalchemy.engine import create_engine
from core.db import DATABASE_URL
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + "/../../")
config = context.config
from app.models import BaseMeta
from app.models import BaseMeta # noqa: E402
target_metadata = BaseMeta.metadata