Skip to content

Commit

Permalink
Lint cleanup part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jryburn committed Feb 9, 2024
1 parent 3dce530 commit 934390f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/event_source/kentik_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand All @@ -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)
Expand Down Expand Up @@ -143,7 +143,7 @@ class MockQueue:
async def put(self: "MockQueue", event: dict) -> None:
"""Print the event."""
print(event)

asyncio.run(
main(
MockQueue(),
Expand Down

0 comments on commit 934390f

Please sign in to comment.