Enabled all Ruff linter rules and fixed resulting violations.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 4s
CI / Tests (push) Successful in 28s
CI / Type Checking (push) Successful in 11s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-03-29 20:08:30 -04:00
parent 603a927f12
commit abe1444e4c
16 changed files with 188 additions and 125 deletions
+11 -3
View File
@@ -261,7 +261,9 @@ class Database:
return row[0] if row else None
async def get_random_completing_next_word(
self, channel_id: int, word: str
self,
channel_id: int,
word: str,
) -> str | None:
"""Return a random sentence-ending next word for a given word in a channel.
@@ -352,7 +354,10 @@ class Database:
)
async def clear_flag(
self, entity_type: str, entity_id: str, flag_name: str
self,
entity_type: str,
entity_id: str,
flag_name: str,
) -> None:
"""Clear a flag on a given entity. If the flag is not set, this is a no-op.
@@ -370,7 +375,10 @@ class Database:
)
async def is_flag_set(
self, entity_type: str, entity_id: str, flag_name: str
self,
entity_type: str,
entity_id: str,
flag_name: str,
) -> bool:
"""Check whether a flag is set on a given entity.