From bfc37ec99f1aa7d3e12a7e84aa6f305c306f3b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Helle=C5=9Ben?= Date: Tue, 17 Mar 2026 19:59:02 +0100 Subject: [PATCH] Stuff and things --- main.py | 6 +++++- pyproject.toml | 2 +- tests/{reset_undo_test.py => test_reset_undo.py} | 0 3 files changed, 6 insertions(+), 2 deletions(-) rename tests/{reset_undo_test.py => test_reset_undo.py} (100%) diff --git a/main.py b/main.py index 42ca3fb..e045542 100644 --- a/main.py +++ b/main.py @@ -689,7 +689,11 @@ class LoviBotClient(discord.Client): update_trigger_time(str(message.channel.id), message.author.name) logger.info( - "Received message: %s from: %s (trigger: %s, recent: %s)", incoming_message, message.author.name, has_trigger_keyword, not has_trigger_keyword + "Received message: %s from: %s (trigger: %s, recent: %s)", + incoming_message, + message.author.name, + has_trigger_keyword, + not has_trigger_keyword, ) async with message.channel.typing(): diff --git a/pyproject.toml b/pyproject.toml index cce8c5f..45ad980 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ docstring-code-format = true docstring-code-line-length = 20 [tool.ruff.lint.per-file-ignores] -"**/*_test.py" = [ +"**/test_*.py" = [ "ARG", # Unused function args -> fixtures nevertheless are functionally relevant... "FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize() "PLR2004", # Magic value used in comparison, ... diff --git a/tests/reset_undo_test.py b/tests/test_reset_undo.py similarity index 100% rename from tests/reset_undo_test.py rename to tests/test_reset_undo.py