Skip to content

Commit c649dac

Browse files
committed
Lint repo with new ruff rules
1 parent e91dcff commit c649dac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bot/utils/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
def in_code_jam_category(code_jam_category_name: str) -> Callable:
1414
"""Raises `CodeJamCategoryCheckFailure` when the command is invoked outside the Code Jam categories."""
15-
async def predicate(ctx: commands.Context) -> bool: # noqa: RUF029
15+
async def predicate(ctx: commands.Context) -> bool:
1616
if not ctx.guild:
1717
return False
1818
if not ctx.message.channel.category:

bot/utils/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def in_month_command(*allowed_months: Month) -> Callable:
7575
7676
Uses the current UTC month at the time of running the predicate.
7777
"""
78-
async def predicate(ctx: Context) -> bool: # noqa: RUF029
78+
async def predicate(ctx: Context) -> bool:
7979
current_month = resolve_current_month()
8080
can_run = current_month in allowed_months
8181

0 commit comments

Comments
 (0)