fix: fix woodpecker pipelines
All checks were successful
ci/woodpecker/pr/lints Pipeline was successful
ci/woodpecker/pr/tests Pipeline was successful
ci/woodpecker/pr/types Pipeline was successful

This commit is contained in:
2026-04-26 10:29:02 +03:00
parent 32b8b4d02b
commit 65158a8760
24 changed files with 307 additions and 109 deletions

View File

@@ -1,20 +1,21 @@
from contextlib import asynccontextmanager
from typing import AsyncGenerator
import uvicorn
from fastapi import FastAPI
@asynccontextmanager
async def lifespan(app: FastAPI):
async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
yield
def app_factory():
def app_factory() -> FastAPI:
app = FastAPI(lifespan=lifespan)
return app
def main():
def main() -> None:
uvicorn.run(app_factory, factory=True, host="0.0.0.0", port=8000)