From b1087405d1913c3c4e962c1e5e1c1cd289a12439 Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Sun, 28 Dec 2025 18:33:55 -0600 Subject: [PATCH] Add Autoflake command and some import cleanup --- .vscode/tasks.json | 8 ++++++++ app/core/config.py | 1 - app/core/database.py | 3 +-- main.py | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4e08857..a0f6732 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -42,6 +42,14 @@ "problemMatcher": [ "$python" ] + }, + { + "label": "Autoflake Fix", + "type": "shell", + "command": "uv run autoflake -i app/**/*.py", + "problemMatcher": [ + "$python" + ] } ] } \ No newline at end of file diff --git a/app/core/config.py b/app/core/config.py index eec9650..681d4c3 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1,4 +1,3 @@ -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 f04ba9c..e192901 100644 --- a/app/core/database.py +++ b/app/core/database.py @@ -2,8 +2,7 @@ from typing import Generator from sqlalchemy import MetaData, create_engine -from sqlalchemy.ext.asyncio import (AsyncSession, async_sessionmaker, - create_async_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/main.py b/main.py index 850ddd7..43a13ce 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ def create_app() -> FastAPI: docs_url="/docs", redoc_url="/redoc", ) - + # Include all endpoint routers app.include_router(health.router, tags=["health"])