From 82f8c6b528816ac03ce36eaf8fd9b53edc1d348d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Thu, 3 Aug 2023 11:53:34 +0000 Subject: [PATCH] tox test: ruff .278 requires capital letters (#152) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ruff .278 requires capital letters --------- Signed-off-by: Thomas Sjögren Co-authored-by: Alex Co-authored-by: Tom Tuffin <71447672+ttuffin@users.noreply.github.com> --- extensions/eda/plugins/event_source/aws_sqs_queue.py | 2 +- extensions/eda/plugins/event_source/url_check.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/eda/plugins/event_source/aws_sqs_queue.py b/extensions/eda/plugins/event_source/aws_sqs_queue.py index d8fff5f0..934bc8b8 100644 --- a/extensions/eda/plugins/event_source/aws_sqs_queue.py +++ b/extensions/eda/plugins/event_source/aws_sqs_queue.py @@ -67,7 +67,7 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None: meta = {"MessageId": msg["MessageId"]} try: msg_body = json.loads(msg["Body"]) - except json.JSONDecodeError: # noqa: perf203 + except json.JSONDecodeError: msg_body = msg["Body"] await queue.put({"body": msg_body, "meta": meta}) diff --git a/extensions/eda/plugins/event_source/url_check.py b/extensions/eda/plugins/event_source/url_check.py index 796e1754..8c6c7b89 100644 --- a/extensions/eda/plugins/event_source/url_check.py +++ b/extensions/eda/plugins/event_source/url_check.py @@ -51,7 +51,7 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None: }, ) - except aiohttp.ClientError as e: # noqa: perf203 + except aiohttp.ClientError as e: client_error = str(e) await queue.put( {