Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-json
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.12.2
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
2 changes: 1 addition & 1 deletion onetrueslash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def onetrueslash_command_autocomplete(
if not command or command in matches:
continue
try:
if name == "help" and await command.can_run(ctx) or await _filter(command):
if (name == "help" and await command.can_run(ctx)) or await _filter(command):
if len(name) > 100:
name = name[:99] + "\N{HORIZONTAL ELLIPSIS}"
matches[command] = name
Expand Down
12 changes: 6 additions & 6 deletions rift/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ async def _search(
if channel in results:
continue
if channel == source:
reasons[
channel.mention
] = "Rifts cannot be opened to the same channel as their source."
reasons[channel.mention] = (
"Rifts cannot be opened to the same channel as their source."
)
continue
if getattr(channel, "nsfw", False) != is_nsfw:
reasons[
channel.mention
] = f"Channel {'is not' if is_nsfw else 'is'} nsfw, while this channel {'is' if is_nsfw else 'is not'}."
reasons[channel.mention] = (
f"Channel {'is not' if is_nsfw else 'is'} nsfw, while this channel {'is' if is_nsfw else 'is not'}."
)
continue
if blacklists[1].get(channel.id, {}).get("blacklisted"):
reasons[channel.mention] = "Channel is blocked from receiving rifts."
Expand Down
2 changes: 1 addition & 1 deletion rtfs/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def _fill_index(self, idx: int) -> int:


class _AsyncIterSource(Generic[_T_co]):
__slots__ = ("_cache", "_aiter")
__slots__ = ("_aiter", "_cache")

def __init__(self, __seq: AsyncIterable[_T_co]) -> None:
self._aiter = aiter(__seq)
Expand Down
2 changes: 1 addition & 1 deletion turn/turn.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Game(NamedList):
__slots__ = "queue", "destination", "source", "time", "paused", "task"
__slots__ = "destination", "paused", "queue", "source", "task", "time"


def standstr(argument):
Expand Down