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