From ce76e78f6b7894fea25311e202d80455e5dfe39f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Fri, 19 Dec 2025 06:41:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_app.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/test_app.py b/test_app.py index cc1c8213a..db4a843c1 100644 --- a/test_app.py +++ b/test_app.py @@ -8,21 +8,24 @@ app = FastAPI( ```bash curl -X GET http://127.0.0.1:8000/ -""" +""", ) + class HealthResponse(BaseModel): - status: str + status: str + @app.get("/") def root(): - return "Hello World" + return "Hello World" + @app.get( -"/health", -response_model=HealthResponse, -summary="Health check endpoint", -tags=["System"] + "/health", + response_model=HealthResponse, + summary="Health check endpoint", + tags=["System"], ) def health_check(): - return HealthResponse(status="healthy") \ No newline at end of file + return HealthResponse(status="healthy")