WIP Add CI #1

Open
Adrien wants to merge 39 commits from init-ci into develop
Showing only changes of commit f964ba9027 - Show all commits

View File

@@ -18,13 +18,14 @@ from api.routers import line, stop
@asynccontextmanager
Review

🚫 [mypy] reported by reviewdog 🐶
Argument 1 to "asynccontextmanager" has incompatible type "CallableAny], None]"; expected "Callable[[Any], AsyncIterator[Never" [arg-type]

🚫 **[mypy]** <sub>reported by [reviewdog](https://github.com/reviewdog/reviewdog) :dog:</sub><br>Argument 1 to "asynccontextmanager" has incompatible type "Callable[[Any], None]"; expected "Callable[[Any], AsyncIterator[Never]]" [arg-type]
async def lifespan(app: FastAPI):
async def lifespan(app: FastAPI) -> None:
Review

🚫 [mypy] reported by reviewdog 🐶
The return type of an async generator function should be "AsyncGenerator" or one of its supertypes [misc]

🚫 **[mypy]** <sub>reported by [reviewdog](https://github.com/reviewdog/reviewdog) :dog:</sub><br>The return type of an async generator function should be "AsyncGenerator" or one of its supertypes [misc]
FastAPICache.init(redis_backend, prefix="api", enable=settings.cache.enable)
await db.connect(settings.db, settings.clear_static_data)
if settings.clear_static_data:
await idfm_interface.startup()
print("OK")
yield
await db.disconnect()