From b509b0ab7718fadb6d64bdcae949c0b44eedb74e Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 9 Oct 2023 17:07:58 +0200 Subject: [PATCH] fix tox complaints --- src/teams_bot/bot.py | 4 ++-- src/teams_bot/cli.py | 4 +--- tests/test_cli.py | 4 +++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/teams_bot/bot.py b/src/teams_bot/bot.py index 782ad37..f1ad9fe 100644 --- a/src/teams_bot/bot.py +++ b/src/teams_bot/bot.py @@ -55,9 +55,9 @@ class RelayPlugin: else: logging.debug("This is a system message in an outside group.") relay_group = self.get_relay_group(message.chat.id) - if 'image changed by' in message.text: + if "image changed by" in message.text: relay_group.set_profile_image(message.chat.get_profile_image()) - if 'name changed from' in message.text: + if "name changed from" in message.text: group_name = "[%s] %s" % ( self.account.get_config("addr").split("@")[0], message.chat.get_name(), diff --git a/src/teams_bot/cli.py b/src/teams_bot/cli.py index 673cfcd..064608b 100644 --- a/src/teams_bot/cli.py +++ b/src/teams_bot/cli.py @@ -182,9 +182,7 @@ def verify_crypto(ctx, dbdir: str, verbose: int): setup_contact = ac.get_setup_contact_qr() qr = qrcode.QRCode() qr.add_data(setup_contact) - print( - "\nPlease scan this qr code with Delta Chat to verify the bot:\n\n" - ) + print("\nPlease scan this qr code with Delta Chat to verify the bot:\n\n") qr.print_ascii(invert=True) print( "\nAlternatively, copy-paste this invite to your Delta Chat desktop client:", diff --git a/tests/test_cli.py b/tests/test_cli.py index d826831..59452e3 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -4,6 +4,8 @@ def test_help(cmd): """ Usage: teams-bot [OPTIONS] COMMAND [ARGS]... * -h, --help Show this message and exit. - * init Configure bot; create crew; add user to crew by scanning a QR code. + * init Scan a QR code to create a crew and join it + * run Run the bot, so it relays messages from and to the outside + * verify-crypto Show a QR code to verify the encryption with the bot """, )