refactor: reorder imports to follow PEP 8 convention

This commit is contained in:
Данил 2025-02-20 21:40:32 +03:00
parent cabcccc0fb
commit 058c9771df
2 changed files with 7 additions and 8 deletions

10
main.py
View file

@ -13,16 +13,14 @@ import http
import uvicorn
import yaml
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from starlette.responses import FileResponse
from fastapi import FastAPI
from src.middleware.plausible_analytics import PlausibleAnalytics
from src.routes import index, wallpaper
config = yaml.safe_load(open('./config.yaml'))
from src.routes import index
from src.routes import wallpaper
config = yaml.safe_load(open('config.yaml'))
app = FastAPI()

View file

@ -9,9 +9,10 @@ In case of any client-side or server-side errors, no event is sent,
and the response is returned as usual.
"""
import httpx
import yaml
from http import HTTPStatus
import yaml
import httpx
from user_agents import parse as ua_parse
config = yaml.safe_load(open('./config.yaml'))