Skip to content

Commit

Permalink
Ignore a RUF029 (unused async)
Browse files Browse the repository at this point in the history
There is special handling in Ruff for FastAPI routes, but it's
apparently not recognizing this function as being one. I've opened
<astral-sh/ruff#14903> for it.

Signed-off-by: Tim Weber <[email protected]>
  • Loading branch information
scy committed Dec 10, 2024
1 parent f080b1f commit 4c87875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/dearmep/static_files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def mount_if_configured(app: FastAPI, path: str) -> None:
summary="Get Demo HTML",
response_class=HTMLResponse,
)
async def get_demo_html(req: Request) -> str:
async def get_demo_html(req: Request) -> str: # noqa: RUF029
"""
Return a HTML page that can be used to demo the application.
Expand Down

0 comments on commit 4c87875

Please sign in to comment.