From 934390faaf5a2ca60481227801bad3d1d97efbc4 Mon Sep 17 00:00:00 2001 From: Justin Ryburn Date: Fri, 9 Feb 2024 09:32:37 -0600 Subject: [PATCH] Lint cleanup part 2 --- plugins/event_source/kentik_webhook.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/event_source/kentik_webhook.py b/plugins/event_source/kentik_webhook.py index 3dd8f57..d2f15f8 100644 --- a/plugins/event_source/kentik_webhook.py +++ b/plugins/event_source/kentik_webhook.py @@ -14,7 +14,7 @@ import asyncio import json import logging -from collections.abc import Callable +# from collections.abc import Callable from typing import Any from aiohttp import web @@ -85,9 +85,9 @@ def set_app_attr(args: dict[str, Any]) -> dict[str, Any]: """ if "host" not in args: - host="0.0.0.0" + host = "0.0.0.0" if "port" not in args: - port=5000 + port = 5000 app_attrs = {} app_attrs["host"] = args.get("host") app_attrs["port"] = args.get("port") @@ -109,7 +109,7 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None: """ _initialize_logger_config() logging.info("Starting kentik_webhook...") - + app_attrs = set_app_attr(args) app = web.Application() app.add_routes(routes) @@ -143,7 +143,7 @@ class MockQueue: async def put(self: "MockQueue", event: dict) -> None: """Print the event.""" print(event) - + asyncio.run( main( MockQueue(),