Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
@@ -8,8 +8,7 @@ from starlette.types import ASGIApp, Message, Receive, Scope, Send
class XRequestIdMiddleware:
"""
Middleware the set's the X-Request-Id header for each response
"""Middleware the set's the X-Request-Id header for each response
to a random uuid4 (hex) value if the header isn't already
present in the request, otherwise use the provided request id.
"""
@@ -25,8 +24,7 @@ class XRequestIdMiddleware:
request_headers = Headers(scope=scope)
async def send_with_request_id(message: Message) -> None:
"""
Custom send function to mutate the response headers
"""Custom send function to mutate the response headers
and append X-Request-Id to it.
"""
if message["type"] == "http.response.start":