fixed linting issues

This commit is contained in:
c-d-p
2025-04-23 00:57:31 +02:00
parent be00f021ba
commit d5d0a24403
36 changed files with 28 additions and 56 deletions

View File

@@ -7,22 +7,15 @@ from sqlalchemy import pool
from alembic import context
from core.database import Base # Import your Base
# --- Add project root to sys.path ---
# This assumes alembic/env.py is one level down from the project root (backend/)
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, PROJECT_DIR)
# -----------------------------------
# --- Import Base and Models ---
from core.database import Base # Import your Base
# Import all your models here so Base registers them
from modules.auth.models import User # Example: Import User model
from modules.calendar.models import CalendarEvent # Example: Import CalendarEvent model
from modules.nlp.models import ChatMessage # Import the new ChatMessage model
from modules.todo.models import Todo # Import the new Todo model
# Add imports for any other models you have
# ----------------------------
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config

View File

@@ -7,8 +7,6 @@ Create Date: 2025-04-21 01:14:33.233195
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.

View File

@@ -7,8 +7,6 @@ Create Date: 2025-04-21 20:33:27.028529
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.