Skip to content

Commit f302952

Browse files
ci: weekly check. (#1637)
* ci: weekly check. updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.4.3](astral-sh/ruff-pre-commit@v0.3.2...v0.4.3) - [github.com/psf/black: 24.2.0 → 24.4.2](psf/black@24.2.0...24.4.2) * Update pyproject.toml for ruff 0.2.0's breaking changes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Katelyn Gigante <clockwork.singularity@gmail.com>
1 parent 238a2eb commit f302952

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: requirements-txt-fixer
66
name: Requirements
@@ -30,13 +30,13 @@ repos:
3030
- id: check-merge-conflict
3131
name: Merge Conflicts
3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: 'v0.14.6'
33+
rev: 'v0.14.7'
3434
hooks:
3535
- id: ruff
3636
args: [--fix, --exit-non-zero-on-fix]
3737
language: python
38-
- repo: https://github.com/psf/black
39-
rev: 24.4.2
38+
- repo: https://github.com/psf/black-pre-commit-mirror
39+
rev: 25.11.0
4040
hooks:
4141
- id: black
4242
name: Black Formatting

interactions/api/voice/player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def run(self) -> None:
135135
self.state.ws.send_packet(data, self._encoder, needs_encode=self.current_audio.needs_encode)
136136
elif self.current_audio.locked_stream or not self.current_audio.audio_complete:
137137
# if more audio is expected
138-
self.state.ws.send_packet(b"\xF8\xFF\xFE", self._encoder, needs_encode=False)
138+
self.state.ws.send_packet(b"\xf8\xff\xfe", self._encoder, needs_encode=False)
139139
else:
140140
break
141141

interactions/client/utils/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_file_mimetype(file_data: bytes) -> str:
175175
return "application/json"
176176
if file_data.startswith((b"GIF87a", b"GIF89a")):
177177
return "image/gif"
178-
if file_data.startswith(b"\x89PNG\x0D\x0A\x1A\x0A"):
178+
if file_data.startswith(b"\x89PNG\x0d\x0a\x1a\x0a"):
179179
return "image/png"
180180
if file_data.startswith(b"\xff\xd8\xff"):
181181
return "image/jpeg"

interactions/models/discord/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ class GuildMedia(GuildForum): ...
26832683

26842684

26852685
def process_permission_overwrites(
2686-
overwrites: Union[dict, PermissionOverwrite, List[Union[dict, PermissionOverwrite]]]
2686+
overwrites: Union[dict, PermissionOverwrite, List[Union[dict, PermissionOverwrite]]],
26872687
) -> List[dict]:
26882688
"""
26892689
Processes a permission overwrite lists into format for sending to discord.

interactions/models/discord/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def process_components(
12311231
BaseComponent,
12321232
Dict,
12331233
]
1234-
]
1234+
],
12351235
) -> List[Dict]:
12361236
"""
12371237
Process the passed components into a format discord will understand.

interactions/models/discord/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ def process_allowed_mentions(allowed_mentions: Optional[Union[AllowedMentions, d
982982

983983

984984
def process_message_reference(
985-
message_reference: Optional[Union[MessageReference, Message, dict, "Snowflake_Type"]]
985+
message_reference: Optional[Union[MessageReference, Message, dict, "Snowflake_Type"]],
986986
) -> Optional[dict]:
987987
"""
988988
Process mention references into a dictionary.

0 commit comments

Comments
 (0)