Skip to content

Commit

Permalink
Replace .flake8 file with noqa comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-chaban committed Dec 20, 2024
1 parent f873524 commit 6e1800a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion tgtg_scanner/notifiers/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6e1800a

Please sign in to comment.