mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
wip: lint
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import logging
|
||||
import os
|
||||
from contextlib import asynccontextmanager
|
||||
from pathlib import Path
|
||||
|
||||
import asyncpg
|
||||
import orjson
|
||||
import structlog
|
||||
from fastapi import Depends, FastAPI, Request
|
||||
from fastapi.responses import HTMLResponse
|
||||
from fastapi.templating import Jinja2Templates
|
||||
@@ -19,10 +15,8 @@ from app.api.user import router as user_router
|
||||
from app.config import settings as global_settings
|
||||
from app.redis import get_redis
|
||||
from app.services.auth import AuthBearer
|
||||
from whenever._whenever import Instant
|
||||
from app.utils.logging import setup_structlog
|
||||
|
||||
|
||||
logger = setup_structlog()
|
||||
templates = Jinja2Templates(directory=Path(__file__).parent.parent / "templates")
|
||||
|
||||
@@ -81,4 +75,4 @@ app = create_app()
|
||||
# app.add_middleware(SchedulerMiddleware, scheduler=_scheduler_himself)
|
||||
# TODO: every non-GET method should reset cache
|
||||
# TODO: scheduler tasks needing DB should access connection pool via request
|
||||
# TODO: https://stackoverflow.com/questions/16053364/make-sure-only-one-worker-launches-the-apscheduler-event-in-a-pyramid-web-app-ru
|
||||
# TODO: https://stackoverflow.com/questions/16053364/make-sure-only-one-worker-launches-the-apscheduler-event-in-a-pyramid-web-app-ru
|
||||
|
||||
Reference in New Issue
Block a user