Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargis Sultani committed Oct 19, 2023
1 parent f2903db commit c56f813
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions db_revisions/env.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import os
from dotenv import load_dotenv

from logging.config import fileConfig

from sqlalchemy import engine_from_config
from sqlalchemy import pool

from alembic import context
from src.models import Base

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
Expand All @@ -20,7 +18,7 @@
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
from src.models import Base

target_metadata = Base.metadata

# other values from the config, defined by the needs of env.py,
Expand Down
1 change: 0 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import logging
import sys
import env # noqa: F401
from http import HTTPStatus
from fastapi import FastAPI, HTTPException, Request
Expand Down
2 changes: 1 addition & 1 deletion src/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, DateTime, ForeignKey, Index, Integer, PrimaryKeyConstraint, String
from sqlalchemy import Column, DateTime, ForeignKey, Index, PrimaryKeyConstraint, String
from sqlalchemy.sql import func

Base = declarative_base()
Expand Down

0 comments on commit c56f813

Please sign in to comment.