From 6e1800a3b76743485a6bc1aa203b6f8ffa15a2b4 Mon Sep 17 00:00:00 2001 From: ihor-chaban Date: Thu, 19 Dec 2024 23:55:38 -0500 Subject: [PATCH] Replace .flake8 file with noqa comment --- .flake8 | 2 -- tgtg_scanner/notifiers/telegram.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 .flake8 diff --git a/.flake8 b/.flake8 deleted file mode 100644 index a40a644a..00000000 --- a/.flake8 +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -extend-ignore = E203 diff --git a/tgtg_scanner/notifiers/telegram.py b/tgtg_scanner/notifiers/telegram.py index 8f8806bd..2e8ddacd 100644 --- a/tgtg_scanner/notifiers/telegram.py +++ b/tgtg_scanner/notifiers/telegram.py @@ -534,4 +534,4 @@ def __repr__(self) -> str: @staticmethod def _shorten_with_ellipsis(text: str, length: int = MAX_BUTTON_TEXT_LENGTH) -> str: """Shorten text to length and add ellipsis in the middle""" - return text if len(text) <= length else text[: (length - 3) // 2] + "..." + text[-(length - 3) // 2 :] + return text if len(text) <= length else text[: (length - 3) // 2] + "..." + text[-(length - 3) // 2 :] # noqa: E203