Skip to content

Commit 624b98b

Browse files
Alphabetise init files and sequences (#320)
* alphabetise cogs * alphabetise exceptions * alphabetise utils * alphabetise cog sequences * alphabetise all other sequences
1 parent 9820aa7 commit 624b98b

File tree

13 files changed

+54
-54
lines changed

13 files changed

+54
-54
lines changed

cogs/__init__.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@
88
from collections.abc import Sequence
99

1010
__all__: Sequence[str] = (
11+
"AnnualRolesResetCommandCog",
12+
"AnnualYearChannelsIncrementCommandCog",
1113
"ArchiveCommandCog",
12-
"GetTokenAuthorisationCommandCog",
14+
"ClearRemindersBacklogTaskCog",
1315
"CommandErrorCog",
16+
"CommitteeHandoverCommandCog",
1417
"DeleteAllCommandsCog",
1518
"EditMessageCommandCog",
1619
"EnsureMembersInductedCommandCog",
17-
"MakeApplicantSlashCommandCog",
18-
"MakeApplicantContextCommandsCog",
19-
"CommitteeHandoverCommandCog",
20-
"AnnualRolesResetCommandCog",
21-
"InductSlashCommandCog",
22-
"InductSendMessageCog",
20+
"GetTokenAuthorisationCommandCog",
2321
"InductContextCommandsCog",
22+
"InductSendMessageCog",
23+
"InductSlashCommandCog",
2424
"KillCommandCog",
25+
"MakeApplicantContextCommandsCog",
26+
"MakeApplicantSlashCommandCog",
2527
"MakeMemberCommandCog",
26-
"AnnualYearChannelsIncrementCommandCog",
28+
"ManualModerationCog",
2729
"PingCommandCog",
28-
"ClearRemindersBacklogTaskCog",
2930
"RemindMeCommandCog",
3031
"SendGetRolesRemindersTaskCog",
3132
"SendIntroductionRemindersTaskCog",
33+
"setup",
3234
"SourceCommandCog",
3335
"StartupCog",
3436
"StatsCommandsCog",
35-
"ManualModerationCog",
3637
"StrikeCommandCog",
3738
"StrikeUserCommandCog",
3839
"WriteRolesCommandCog",
39-
"setup",
4040
)
4141

4242

@@ -82,31 +82,31 @@
8282
def setup(bot: TeXBot) -> None:
8383
"""Add all the cogs to the bot, at bot startup."""
8484
cogs: Iterable[type[TeXBotBaseCog]] = (
85+
AnnualRolesResetCommandCog,
86+
AnnualYearChannelsIncrementCommandCog,
8587
ArchiveCommandCog,
86-
GetTokenAuthorisationCommandCog,
88+
ClearRemindersBacklogTaskCog,
8789
CommandErrorCog,
90+
CommitteeHandoverCommandCog,
8891
DeleteAllCommandsCog,
8992
EditMessageCommandCog,
9093
EnsureMembersInductedCommandCog,
91-
CommitteeHandoverCommandCog,
92-
AnnualRolesResetCommandCog,
93-
InductSlashCommandCog,
94-
InductSendMessageCog,
95-
AnnualYearChannelsIncrementCommandCog,
94+
GetTokenAuthorisationCommandCog,
9695
InductContextCommandsCog,
96+
InductSendMessageCog,
97+
InductSlashCommandCog,
9798
KillCommandCog,
98-
MakeApplicantSlashCommandCog,
9999
MakeApplicantContextCommandsCog,
100+
MakeApplicantSlashCommandCog,
100101
MakeMemberCommandCog,
102+
ManualModerationCog,
101103
PingCommandCog,
102-
ClearRemindersBacklogTaskCog,
103104
RemindMeCommandCog,
104105
SendGetRolesRemindersTaskCog,
105106
SendIntroductionRemindersTaskCog,
106107
SourceCommandCog,
107108
StartupCog,
108109
StatsCommandsCog,
109-
ManualModerationCog,
110110
StrikeCommandCog,
111111
StrikeUserCommandCog,
112112
WriteRolesCommandCog,

cogs/annual_handover_and_reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from collections.abc import Sequence
44

55
__all__: Sequence[str] = (
6-
"CommitteeHandoverCommandCog",
76
"AnnualRolesResetCommandCog",
87
"AnnualYearChannelsIncrementCommandCog",
8+
"CommitteeHandoverCommandCog",
99
)
1010

1111
import datetime

cogs/induct.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from collections.abc import Sequence
44

55
__all__: Sequence[str] = (
6-
"InductSendMessageCog",
76
"BaseInductCog",
8-
"InductSlashCommandCog",
9-
"InductContextCommandsCog",
107
"EnsureMembersInductedCommandCog",
8+
"InductContextCommandsCog",
9+
"InductSendMessageCog",
10+
"InductSlashCommandCog",
1111
)
1212

1313

cogs/kill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from collections.abc import Sequence
44

5-
__all__: Sequence[str] = ("KillCommandCog", "ConfirmKillView")
5+
__all__: Sequence[str] = ("ConfirmKillView", "KillCommandCog")
66

77

88
import contextlib

cogs/make_applicant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
__all__: Sequence[str] = (
66
"BaseMakeApplicantCog",
7-
"MakeApplicantSlashCommandCog",
87
"MakeApplicantContextCommandsCog",
8+
"MakeApplicantSlashCommandCog",
99
)
1010

1111

cogs/remind_me.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from collections.abc import Sequence
44

5-
__all__: Sequence[str] = ("RemindMeCommandCog", "ClearRemindersBacklogTaskCog")
5+
__all__: Sequence[str] = ("ClearRemindersBacklogTaskCog", "RemindMeCommandCog")
66

77

88
import datetime

cogs/strike.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from collections.abc import Sequence
44

55
__all__: Sequence[str] = (
6-
"perform_moderation_action",
7-
"ConfirmStrikeMemberView",
6+
"BaseStrikeCog",
87
"ConfirmManualModerationView",
8+
"ConfirmStrikeMemberView",
99
"ConfirmStrikesOutOfSyncWithBanView",
10-
"BaseStrikeCog",
1110
"ManualModerationCog",
11+
"perform_moderation_action",
1212
"StrikeCommandCog",
1313
"StrikeUserCommandCog",
1414
)

exceptions/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
"ChannelDoesNotExistError",
99
"CommitteeElectRoleDoesNotExistError",
1010
"CommitteeRoleDoesNotExistError",
11+
"DiscordMemberNotInMainGuildError",
12+
"EveryoneRoleCouldNotBeRetrievedError",
1113
"GeneralChannelDoesNotExistError",
1214
"GuestRoleDoesNotExistError",
1315
"GuildDoesNotExistError",
16+
"ImproperlyConfiguredError",
17+
"InvalidMessagesJSONFileError",
1418
"MemberRoleDoesNotExistError",
19+
"MessagesJSONFileMissingKeyError",
20+
"MessagesJSONFileValueError",
21+
"NoAuditLogsStrikeTrackingError",
22+
"RestartRequiredDueToConfigChange",
1523
"RoleDoesNotExistError",
1624
"RolesChannelDoesNotExistError",
1725
"RulesChannelDoesNotExistError",
18-
"DiscordMemberNotInMainGuildError",
19-
"EveryoneRoleCouldNotBeRetrievedError",
2026
"StrikeTrackingError",
21-
"NoAuditLogsStrikeTrackingError",
22-
"MessagesJSONFileMissingKeyError",
23-
"MessagesJSONFileValueError",
24-
"InvalidMessagesJSONFileError",
25-
"ImproperlyConfiguredError",
26-
"RestartRequiredDueToConfigChange",
2727
)
2828

2929

exceptions/does_not_exist.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
from collections.abc import Sequence
44

55
__all__: Sequence[str] = (
6-
"RulesChannelDoesNotExistError",
7-
"GuildDoesNotExistError",
8-
"RoleDoesNotExistError",
9-
"CommitteeRoleDoesNotExistError",
6+
"ApplicantRoleDoesNotExistError",
7+
"ArchivistRoleDoesNotExistError",
8+
"ChannelDoesNotExistError",
109
"CommitteeElectRoleDoesNotExistError",
10+
"CommitteeRoleDoesNotExistError",
11+
"GeneralChannelDoesNotExistError",
1112
"GuestRoleDoesNotExistError",
13+
"GuildDoesNotExistError",
1214
"MemberRoleDoesNotExistError",
13-
"ArchivistRoleDoesNotExistError",
14-
"ApplicantRoleDoesNotExistError",
15-
"ChannelDoesNotExistError",
15+
"RoleDoesNotExistError",
1616
"RolesChannelDoesNotExistError",
17-
"GeneralChannelDoesNotExistError",
17+
"RulesChannelDoesNotExistError",
1818
)
1919

2020

exceptions/strike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from collections.abc import Sequence
44

55
__all__: Sequence[str] = (
6-
"StrikeTrackingError",
76
"NoAuditLogsStrikeTrackingError",
7+
"StrikeTrackingError",
88
)
99

1010

0 commit comments

Comments
 (0)