Use Ruff and fix all its warnings and errors

This commit is contained in:
2023-03-19 00:54:21 +01:00
parent ec2978b529
commit 11d9f2c2a5
10 changed files with 687 additions and 363 deletions

View File

@ -1,14 +1,11 @@
from discord_reminder_bot import main
def test_if_send_to_discord_is_in_main():
"""
send_to_discords needs to be in main for this program to work.
"""
def test_if_send_to_discord_is_in_main() -> None:
"""send_to_discords needs to be in main for this program to work."""
assert hasattr(main, "send_to_discord")
def test_if_send_to_user_is_in_main():
"""
send_to_user needs to be in main for this program to work.
"""
assert hasattr(main, "send_to_user")
def test_if_send_to_user_is_in_main() -> None:
"""send_to_user needs to be in main for this program to work."""
assert hasattr(main, "send_to_user")