[QG] Add quality gates on main branch
ci/woodpecker/push/lints Pipeline was successful
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/push/types Pipeline was successful

[+] add lint pipeline for ruff isort and black checks
[+] add types pipeline for mypy check
[+] add tests pipeline for pytest check with coverage less 70% blocker QG
[+] add some tests fo QG pass
This commit is contained in:
2026-04-20 10:06:29 +03:00
parent 048071263a
commit 9c3b44b561
13 changed files with 103 additions and 57 deletions
View File
Binary file not shown.
Binary file not shown.
+22
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()