Bump pre-commit Hooks to Latest Versions (#5083)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2026-01-06 22:25:31 +01:00
committed by GitHub
parent 20f457c949
commit c804f693cc
4 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -118,13 +118,13 @@ async def main() -> None:
# Set up webserver
flask_app = Flask(__name__)
@flask_app.post("/telegram") # type: ignore[misc]
@flask_app.post("/telegram") # type: ignore[untyped-decorator]
async def telegram() -> Response:
"""Handle incoming Telegram updates by putting them into the `update_queue`"""
await application.update_queue.put(Update.de_json(data=request.json, bot=application.bot))
return Response(status=HTTPStatus.OK)
@flask_app.route("/submitpayload", methods=["GET", "POST"]) # type: ignore[misc]
@flask_app.route("/submitpayload", methods=["GET", "POST"]) # type: ignore[untyped-decorator]
async def custom_updates() -> Response:
"""
Handle incoming webhook updates by also putting them into the `update_queue` if
@@ -144,7 +144,7 @@ async def main() -> None:
await application.update_queue.put(WebhookUpdate(user_id=user_id, payload=payload))
return Response(status=HTTPStatus.OK)
@flask_app.get("/healthcheck") # type: ignore[misc]
@flask_app.get("/healthcheck") # type: ignore[untyped-decorator]
async def health() -> Response:
"""For the health endpoint, reply with a simple plain text message."""
response = make_response("The bot is still running fine :)", HTTPStatus.OK)
+3 -3
View File
@@ -117,7 +117,7 @@ async def main() -> None:
# Set up webserver
quart_app = Quart(__name__)
@quart_app.post("/telegram") # type: ignore[misc]
@quart_app.post("/telegram") # type: ignore[untyped-decorator]
async def telegram() -> Response:
"""Handle incoming Telegram updates by putting them into the `update_queue`"""
await application.update_queue.put(
@@ -125,7 +125,7 @@ async def main() -> None:
)
return Response(status=HTTPStatus.OK)
@quart_app.route("/submitpayload", methods=["GET", "POST"]) # type: ignore[misc]
@quart_app.route("/submitpayload", methods=["GET", "POST"]) # type: ignore[untyped-decorator]
async def custom_updates() -> Response:
"""
Handle incoming webhook updates by also putting them into the `update_queue` if
@@ -145,7 +145,7 @@ async def main() -> None:
await application.update_queue.put(WebhookUpdate(user_id=user_id, payload=payload))
return Response(status=HTTPStatus.OK)
@quart_app.get("/healthcheck") # type: ignore[misc]
@quart_app.get("/healthcheck") # type: ignore[untyped-decorator]
async def health() -> Response:
"""For the health endpoint, reply with a simple plain text message."""
response = await make_response("The bot is still running fine :)", HTTPStatus.OK)