diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78e80c2a78..438719f37a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - id: pyupgrade exclude: \.(po|pot|yml|yaml)$ - repo: https://github.com/PyCQA/isort - rev: 8.0.1 + rev: 9.0.0a3 hooks: - id: isort exclude: \.(po|pot|yml|yaml)$ @@ -87,7 +87,7 @@ repos: args: [--prose-wrap=always, --print-width=88] exclude: \.(po|pot|yml|yaml)$ - repo: https://github.com/DanielNoord/pydocstringformatter - rev: v0.7.5 + rev: v1.0.0 hooks: - id: pydocstringformatter exclude: \.(po|pot|yml|yaml)$ diff --git a/discord/commands/core.py b/discord/commands/core.py index 88cbbbb1c6..0def58b528 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -47,11 +47,7 @@ from ..channel import PartialMessageable, _threaded_guild_channel_factory from ..enums import Enum as DiscordEnum -from ..enums import ( - IntegrationType, - InteractionContextType, - SlashCommandOptionType, -) +from ..enums import IntegrationType, InteractionContextType, SlashCommandOptionType from ..errors import ( ApplicationCommandError, ApplicationCommandInvokeError, diff --git a/discord/guild.py b/discord/guild.py index 0f9fbdf432..0053cbfd61 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -119,10 +119,7 @@ from .template import Template from .types.guild import Ban as BanPayload from .types.guild import Guild as GuildPayload - from .types.guild import ( - GuildFeature, - MFALevel, - ) + from .types.guild import GuildFeature, MFALevel from .types.guild import ModifyIncidents as ModifyIncidentsPayload from .types.member import Member as MemberPayload from .types.threads import Thread as ThreadPayload diff --git a/discord/integrations.py b/discord/integrations.py index 60ecbdde3f..f5d67faad8 100644 --- a/discord/integrations.py +++ b/discord/integrations.py @@ -50,9 +50,7 @@ from .types.integration import ( IntegrationApplication as IntegrationApplicationPayload, ) - from .types.integration import ( - IntegrationType, - ) + from .types.integration import IntegrationType from .types.integration import StreamIntegration as StreamIntegrationPayload diff --git a/discord/threads.py b/discord/threads.py index 8d7781770a..81d973775f 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -32,9 +32,7 @@ ChannelType, ) from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum -from .enums import ( - try_enum, -) +from .enums import try_enum from .errors import ClientException from .flags import ChannelFlags from .mixins import Hashable