Skip to content

Commit fa15c1d

Browse files
chore(pre-commit): pre-commit autoupdate (#2705)
* chore(pre-commit): pre-commit autoupdate updates: - [github.com/PyCQA/isort: 5.13.2 → 6.0.0](PyCQA/isort@5.13.2...6.0.0) - [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0) * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1b6d2bd commit fa15c1d

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ repos:
2626
- id: pyupgrade
2727
exclude: \.(po|pot|yml|yaml)$
2828
- repo: https://github.com/PyCQA/isort
29-
rev: 5.13.2
29+
rev: 6.0.0
3030
hooks:
3131
- id: isort
3232
exclude: \.(po|pot|yml|yaml)$
3333
- repo: https://github.com/psf/black
34-
rev: 24.10.0
34+
rev: 25.1.0
3535
hooks:
3636
- id: black
3737
args: [--safe, --quiet]

discord/ext/bridge/core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
)
4242

4343
from ...utils import MISSING, find, get, warn_deprecated
44-
from ..commands import BadArgument
44+
from ..commands import (
45+
BadArgument,
46+
)
4547
from ..commands import Bot as ExtBot
4648
from ..commands import (
4749
Command,

discord/ext/commands/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ def decorator(
16951695
func: (
16961696
Callable[Concatenate[ContextT, P], Coro[Any]]
16971697
| Callable[Concatenate[CogT, ContextT, P], Coro[Any]]
1698-
)
1698+
),
16991699
) -> CommandT:
17001700
if isinstance(func, Command):
17011701
raise TypeError("Callback is already a command.")

discord/integrations.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
from .types.integration import (
5151
IntegrationApplication as IntegrationApplicationPayload,
5252
)
53-
from .types.integration import IntegrationType
53+
from .types.integration import (
54+
IntegrationType,
55+
)
5456
from .types.integration import StreamIntegration as StreamIntegrationPayload
5557

5658

discord/raw_models.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
from .partial_emoji import PartialEmoji
4040
from .state import ConnectionState
4141
from .threads import Thread
42-
from .types.raw_models import AuditLogEntryEvent
42+
from .types.raw_models import (
43+
AuditLogEntryEvent,
44+
)
4345
from .types.raw_models import AutoModActionExecutionEvent as AutoModActionExecution
4446
from .types.raw_models import (
4547
BulkMessageDeleteEvent,

discord/sticker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ async def delete(self, *, reason: str | None = None) -> None:
533533

534534

535535
def _sticker_factory(
536-
sticker_type: Literal[1, 2]
536+
sticker_type: Literal[1, 2],
537537
) -> tuple[type[StandardSticker | GuildSticker | Sticker], StickerType]:
538538
value = try_enum(StickerType, sticker_type)
539539
if value == StickerType.standard:

0 commit comments

Comments
 (0)