-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from Desiders/use-linters
Apply `isort` and `ruff` to the whole code. Remove `black`
- Loading branch information
Showing
61 changed files
with
346 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__version__ = '1.4' | ||
__application_name__ = 'KarmaBot' | ||
__author__ = __maintainer__ = 'Yuriy Chebyshev' | ||
__copyright__ = 'Copyleft 2019-2021' | ||
__version__ = "1.4" | ||
__application_name__ = "KarmaBot" | ||
__author__ = __maintainer__ = "Yuriy Chebyshev" | ||
__copyright__ = "Copyleft 2019-2021" | ||
__license__ = "WTFPL" | ||
__email__ = '[email protected]' | ||
__email__ = "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
PLUS = "+" | ||
PLUS_WORDS = frozenset({ | ||
"спасибо", | ||
"спс", | ||
"спасибочки", | ||
"спасибки", | ||
"благодарю", | ||
"пасиба", | ||
"пасеба", | ||
"посеба", | ||
"благодарочка", | ||
"thx", | ||
"мерси", | ||
"выручил", | ||
"сяп", | ||
"сяб", | ||
"сенк", | ||
"сенкс", | ||
"сяпки", | ||
"сябки", | ||
"сенью", | ||
"благодарствую", | ||
}) | ||
PLUS_WORDS = frozenset( | ||
{ | ||
"спасибо", | ||
"спс", | ||
"спасибочки", | ||
"спасибки", | ||
"благодарю", | ||
"пасиба", | ||
"пасеба", | ||
"посеба", | ||
"благодарочка", | ||
"thx", | ||
"мерси", | ||
"выручил", | ||
"сяп", | ||
"сяб", | ||
"сенк", | ||
"сенкс", | ||
"сяпки", | ||
"сябки", | ||
"сенью", | ||
"благодарствую", | ||
} | ||
) | ||
PLUS_TRIGGERS = frozenset({PLUS, *PLUS_WORDS}) | ||
PLUS_EMOJI = frozenset({"👍", }) | ||
PLUS_EMOJI = frozenset( | ||
{ | ||
"👍", | ||
} | ||
) | ||
MINUS = "-" | ||
MINUS_TRIGGERS = frozenset({MINUS, }) | ||
MINUS_EMOJI = frozenset({'👎', }) | ||
MINUS_TRIGGERS = frozenset( | ||
{ | ||
MINUS, | ||
} | ||
) | ||
MINUS_EMOJI = frozenset( | ||
{ | ||
"👎", | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.