Linted .py files
Some checks failed
CI / Lint & Format (push) Has been cancelled
CI / Tests (Pytest + Alembic + Postgres) (push) Has been cancelled
CI / Docker Build (push) Has been cancelled

This commit is contained in:
2025-09-22 20:34:29 +01:00
parent e713f4cc6c
commit f04b04339f
14 changed files with 57 additions and 33 deletions

View File

@@ -1,20 +1,21 @@
import os
import sys
import pathlib
import asyncio
import os
import pathlib
import sys
from logging.config import fileConfig
from alembic import context
from sqlalchemy import pool
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from alembic import context
# Ensure project root is importable
PROJECT_ROOT = pathlib.Path(__file__).resolve().parents[1]
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
# Import metadata (should NOT import settings)
from app.db.base import Base # Base.metadata must include all models
from app.db.base import Base # Base.metadata must include all models # noqa: E402
# Alembic config & logging
config = context.config