lint pipe fixes
All checks were successful
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/push/lints Pipeline was successful

This commit is contained in:
2026-04-19 23:16:09 +03:00
parent fd5e6a5dcb
commit af17b5b3bf
9 changed files with 53 additions and 1 deletions

22
app/main.py Normal file
View File

@@ -0,0 +1,22 @@
from contextlib import asynccontextmanager
import uvicorn
from fastapi import FastAPI
@asynccontextmanager
async def lifespan(app: FastAPI):
yield
def app_factory():
app = FastAPI(lifespan=lifespan)
return app
def main():
uvicorn.run(app_factory, factory=True, host="0.0.0.0", port=8000)
if __name__ == "__main__":
main()