Stuff and things

This commit is contained in:
Joakim Hellsén 2026-03-17 19:59:02 +01:00
commit bfc37ec99f
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
3 changed files with 6 additions and 2 deletions

View file

@ -689,7 +689,11 @@ class LoviBotClient(discord.Client):
update_trigger_time(str(message.channel.id), message.author.name) update_trigger_time(str(message.channel.id), message.author.name)
logger.info( 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(): async with message.channel.typing():

View file

@ -64,7 +64,7 @@ docstring-code-format = true
docstring-code-line-length = 20 docstring-code-line-length = 20
[tool.ruff.lint.per-file-ignores] [tool.ruff.lint.per-file-ignores]
"**/*_test.py" = [ "**/test_*.py" = [
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant... "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() "FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
"PLR2004", # Magic value used in comparison, ... "PLR2004", # Magic value used in comparison, ...