Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam committed Sep 19, 2024
1 parent 0fc56ad commit 1442c54
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions guardrails_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import os

from starlette.middleware.base import BaseHTTPMiddleware
from starlette.requests import Request

class RequestInfoMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request: Request, call_next):
Expand Down Expand Up @@ -50,6 +49,7 @@ async def dispatch(self, request: Request, call_next):
response = await call_next(request)
return response


# Custom JSON encoder
class CustomJSONEncoder(json.JSONEncoder):
def default(self, o):
Expand Down Expand Up @@ -103,7 +103,6 @@ def create_app(
# Initialize FastAPIInstrumentor
FastAPIInstrumentor.instrument_app(app)


# Add CORS middleware
app.add_middleware(
CORSMiddleware,
Expand Down
1 change: 1 addition & 0 deletions guardrails_api/cli/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from guardrails_api.utils.configuration import valid_configuration
import uvicorn


@cli.command("start")
def start(
env: Optional[str] = typer.Option(
Expand Down
1 change: 0 additions & 1 deletion guardrails_api/clients/cache_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import threading
from fastapi import FastAPI
from aiocache import caches


Expand Down

0 comments on commit 1442c54

Please sign in to comment.