From fc3f311e567068bf15333934d0b48c7f3766f742 Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Sun, 28 Dec 2025 12:14:43 -0600 Subject: [PATCH] Include Isort commands --- .vscode/tasks.json | 19 +++++++++++++++++-- app/core/config.py | 1 + app/core/database.py | 9 ++++++--- app/resources/health.py | 1 + 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 0a0c078..c4eb46b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -10,6 +10,21 @@ "problemMatcher": [ "$python" ] - } - ] + }, + { + "label": "Isort Check", + "type": "shell", + "command": "uv run isort . --check --diff", + "problemMatcher": [ + "$python" + ] + }, + { + "label": "Isort Fix", + "type": "shell", + "command": "uv run isort .", + "problemMatcher": [ + "$python" + ] + } ] } \ No newline at end of file diff --git a/app/core/config.py b/app/core/config.py index 3d3e4a5..301bbe5 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1,4 +1,5 @@ from typing import List + from pydantic import Field from pydantic_settings import BaseSettings diff --git a/app/core/database.py b/app/core/database.py index 4ab6434..347cffe 100644 --- a/app/core/database.py +++ b/app/core/database.py @@ -1,8 +1,11 @@ """Database configuration and connection management.""" from typing import Generator -from sqlalchemy import create_engine, MetaData -from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine, async_sessionmaker -from sqlalchemy.orm import DeclarativeBase, sessionmaker, Session + +from sqlalchemy import MetaData, create_engine +from sqlalchemy.ext.asyncio import (AsyncSession, async_sessionmaker, + create_async_engine) +from sqlalchemy.orm import DeclarativeBase, Session, sessionmaker + from app.core.config import settings diff --git a/app/resources/health.py b/app/resources/health.py index 7d6cd4e..157034d 100644 --- a/app/resources/health.py +++ b/app/resources/health.py @@ -1,5 +1,6 @@ """Health check endpoints.""" from fastapi import APIRouter + from app.core.database import DatabaseService router = APIRouter()