Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: requirements-txt-fixer
name: Requirements
Expand Down Expand Up @@ -30,13 +30,13 @@ repos:
- id: check-merge-conflict
name: Merge Conflicts
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.14.6'
rev: 'v0.14.7'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
language: python
- repo: https://github.com/psf/black
rev: 24.4.2
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
hooks:
- id: black
name: Black Formatting
Expand Down
2 changes: 1 addition & 1 deletion interactions/api/voice/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def run(self) -> None:
self.state.ws.send_packet(data, self._encoder, needs_encode=self.current_audio.needs_encode)
elif self.current_audio.locked_stream or not self.current_audio.audio_complete:
# if more audio is expected
self.state.ws.send_packet(b"\xF8\xFF\xFE", self._encoder, needs_encode=False)
self.state.ws.send_packet(b"\xf8\xff\xfe", self._encoder, needs_encode=False)
else:
break

Expand Down
2 changes: 1 addition & 1 deletion interactions/client/utils/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_file_mimetype(file_data: bytes) -> str:
return "application/json"
if file_data.startswith((b"GIF87a", b"GIF89a")):
return "image/gif"
if file_data.startswith(b"\x89PNG\x0D\x0A\x1A\x0A"):
if file_data.startswith(b"\x89PNG\x0d\x0a\x1a\x0a"):
return "image/png"
if file_data.startswith(b"\xff\xd8\xff"):
return "image/jpeg"
Expand Down
2 changes: 1 addition & 1 deletion interactions/models/discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2683,7 +2683,7 @@ class GuildMedia(GuildForum): ...


def process_permission_overwrites(
overwrites: Union[dict, PermissionOverwrite, List[Union[dict, PermissionOverwrite]]]
overwrites: Union[dict, PermissionOverwrite, List[Union[dict, PermissionOverwrite]]],
) -> List[dict]:
"""
Processes a permission overwrite lists into format for sending to discord.
Expand Down
2 changes: 1 addition & 1 deletion interactions/models/discord/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def process_components(
BaseComponent,
Dict,
]
]
],
) -> List[Dict]:
"""
Process the passed components into a format discord will understand.
Expand Down
2 changes: 1 addition & 1 deletion interactions/models/discord/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ def process_allowed_mentions(allowed_mentions: Optional[Union[AllowedMentions, d


def process_message_reference(
message_reference: Optional[Union[MessageReference, Message, dict, "Snowflake_Type"]]
message_reference: Optional[Union[MessageReference, Message, dict, "Snowflake_Type"]],
) -> Optional[dict]:
"""
Process mention references into a dictionary.
Expand Down