Skip to content

Commit

Permalink
feat: sort imports using isort
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Oct 16, 2023
1 parent 665659d commit 417b154
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
29 changes: 10 additions & 19 deletions api/app.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
from fastapi import FastAPI, HTTPException, status, Depends, File, UploadFile, Form
import json

import jwt
import substrait_validator as sv
from duckdb import DuckDBPyConnection
from fastapi import (Depends, FastAPI, File, Form, HTTPException, UploadFile,
status)
from fastapi.middleware.trustedhost import TrustedHostMiddleware
from fastapi.openapi.utils import get_openapi
from fastapi.security import OAuth2PasswordBearer
from fastapi_health import health
import jwt

import json

from duckdb import DuckDBPyConnection

import substrait_validator as sv

from backend.duckdb import (
DuckDBConnection,
CheckDuckDBConnection,
ExecuteDuckDb,
ParseFromDuckDB,
DeleteTableFromDuckDB,
)

from backend.ttl_cache import TTL_Cache

from loguru import logger

from backend.duckdb import (CheckDuckDBConnection, DeleteTableFromDuckDB,
DuckDBConnection, ExecuteDuckDb, ParseFromDuckDB)
from backend.ttl_cache import TTL_Cache

app = FastAPI()

Expand Down
1 change: 0 additions & 1 deletion api/backend/duckdb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import duckdb
from fastapi import HTTPException

from loguru import logger


Expand Down
4 changes: 3 additions & 1 deletion api/test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from fastapi.testclient import TestClient
from io import BytesIO

import requests
from fastapi.testclient import TestClient

from app import app

client = TestClient(app)
Expand Down

0 comments on commit 417b154

Please sign in to comment.