Linting
This commit is contained in:
1 parent
85d6a552c6
commit
7af116d38d
2 files changed
+20
-17
No files matched your search
+14
-12
@@ -1,20 +1,22 @@
|
|||||||
from fastapi import FastAPI, Depends, HTTPException, Request
|
import asyncio
|
||||||
|
import signal
|
||||||
|
from contextlib import asynccontextmanager
|
||||||
|
|
||||||
|
import uvicorn
|
||||||
|
from aio_pika.exceptions import AMQPException
|
||||||
|
from fastapi import Depends, FastAPI, HTTPException, Request
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
from fastapi.security.api_key import APIKeyHeader
|
from fastapi.security.api_key import APIKeyHeader
|
||||||
from starlette.exceptions import HTTPException as StarletteHTTPException
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from validator import verify_api_key
|
from starlette.exceptions import HTTPException as StarletteHTTPException
|
||||||
from db_module import get_db, create_connection_pool, close_connection_pool, start_healthcheck_thread
|
|
||||||
from simple_logger_handler import setup_logger, LOG_LEVEL
|
from db_module import close_connection_pool, create_connection_pool, get_db, start_healthcheck_thread
|
||||||
from rabbitmq_handler import RabbitMQConsumer
|
|
||||||
import uvicorn
|
|
||||||
from contextlib import asynccontextmanager
|
|
||||||
import signal
|
|
||||||
from metrics_server import REQUEST_COUNTER
|
from metrics_server import REQUEST_COUNTER
|
||||||
import asyncio
|
from rabbitmq_handler import RabbitMQConsumer
|
||||||
from uvicorn_logger_config import LOGGING_CONFIG
|
|
||||||
from secret_manager import cleanup_secret_files
|
from secret_manager import cleanup_secret_files
|
||||||
from aio_pika.exceptions import AMQPException
|
from simple_logger_handler import LOG_LEVEL, setup_logger
|
||||||
|
from uvicorn_logger_config import LOGGING_CONFIG
|
||||||
|
from validator import verify_api_key
|
||||||
|
|
||||||
logger = setup_logger(__name__)
|
logger = setup_logger(__name__)
|
||||||
api_key_header_internal = APIKeyHeader(name="X-API-Key-Internal")
|
api_key_header_internal = APIKeyHeader(name="X-API-Key-Internal")
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import weakref
|
||||||
|
from urllib.parse import quote
|
||||||
|
|
||||||
import aio_pika
|
import aio_pika
|
||||||
from aio_pika.exceptions import AMQPException
|
from aio_pika.exceptions import AMQPException
|
||||||
|
|
||||||
from secret_manager import return_credentials
|
from secret_manager import return_credentials
|
||||||
import os
|
|
||||||
from simple_logger_handler import setup_logger
|
from simple_logger_handler import setup_logger
|
||||||
import json
|
|
||||||
import signal
|
|
||||||
from urllib.parse import quote
|
|
||||||
import weakref
|
|
||||||
|
|
||||||
logger = setup_logger(__name__)
|
logger = setup_logger(__name__)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user