Added pydocstyle (D) rules to Ruff and fixed all violations.
CI / Formatting (push) Successful in 12s
CI / Linting (push) Successful in 13s
CI / Tests (Python 3.12) (push) Successful in 26s
CI / Tests (Python 3.13) (push) Successful in 25s
CI / Tests (Python 3.14) (push) Successful in 25s
CI / Type Checking (push) Successful in 26s

This commit is contained in:
2026-02-19 11:47:47 -05:00
parent 33dd49e20a
commit ca4adbcebf
30 changed files with 309 additions and 591 deletions
+3 -6
View File
@@ -48,8 +48,7 @@ type WebhookCallback = Callable[[EventType, Event], Coroutine[Any, Any, None]]
class HttpServer:
"""
HTTP server for Owlbot.
"""HTTP server for Owlbot.
Manages the aiohttp Application, built-in routes (webhook),
and module-registered routes via the RouteDispatcher.
@@ -61,8 +60,7 @@ class HttpServer:
event_dispatch: WebhookCallback,
route_dispatcher: RouteDispatcher,
):
"""
Initialize the web server.
"""Initialize the web server.
:param config: Bot configuration.
:param event_dispatch: Async callback to dispatch webhook events.
@@ -94,8 +92,7 @@ class HttpServer:
logger.debug("HttpServer initialized.")
async def start(self, host: str, port: int) -> None:
"""
Start the HTTP server.
"""Start the HTTP server.
:param host: Address to bind to.
:param port: Port to bind to.