From 3168cd380bd307234780376d254647962a84cab5 Mon Sep 17 00:00:00 2001 From: Dav Date: Fri, 21 May 2021 12:07:33 +0200 Subject: [PATCH] Re-blackify --- anonreporter/anonreporter.py | 2 +- bday/bday.py | 3 ++- botstatus/botstatus.py | 3 ++- casereader/casereader.py | 3 ++- caserelayer/caserelayer.py | 3 ++- check/check.py | 3 ++- exclusiveroles/exclusiveroles.py | 3 ++- httpcat/__init__.py | 2 +- httpcat/httpcat.py | 4 ++-- mcwhitelister/mcwhitelister.py | 2 +- modlogstats/modlogstats.py | 2 +- mover/mover.py | 2 +- nicknamer/nicknamer.py | 4 ++-- prunecmd/prunecmd.py | 4 ++-- rolesyncer/rolesyncer.py | 4 ++-- stickymember/stickymember.py | 8 ++++---- verifyer/verifyer.py | 2 +- 17 files changed, 30 insertions(+), 24 deletions(-) diff --git a/anonreporter/anonreporter.py b/anonreporter/anonreporter.py index ab87c84..1ad2f49 100644 --- a/anonreporter/anonreporter.py +++ b/anonreporter/anonreporter.py @@ -13,7 +13,7 @@ class AnonReporter(commands.Cog): __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/bday/bday.py b/bday/bday.py index efa7060..39a285f 100644 --- a/bday/bday.py +++ b/bday/bday.py @@ -11,10 +11,11 @@ @cog_i18n(_) class Bday(commands.Cog): """Bday""" + __version__ = "0.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/botstatus/botstatus.py b/botstatus/botstatus.py index 3f39abb..2230a6d 100644 --- a/botstatus/botstatus.py +++ b/botstatus/botstatus.py @@ -11,10 +11,11 @@ @cog_i18n(_) class Botstatus(commands.Cog): """Botstatus""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/casereader/casereader.py b/casereader/casereader.py index 2b080ef..00a442c 100644 --- a/casereader/casereader.py +++ b/casereader/casereader.py @@ -10,10 +10,11 @@ @cog_i18n(_) class CaseReader(commands.Cog): """CaseReader""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/caserelayer/caserelayer.py b/caserelayer/caserelayer.py index f6bed42..53a2c50 100644 --- a/caserelayer/caserelayer.py +++ b/caserelayer/caserelayer.py @@ -8,10 +8,11 @@ @cog_i18n(_) class CaseRelayer(commands.Cog): """CaseRelayer""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/check/check.py b/check/check.py index 2b99632..db18c99 100644 --- a/check/check.py +++ b/check/check.py @@ -8,10 +8,11 @@ @cog_i18n(_) class Check(commands.Cog): """Check""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/exclusiveroles/exclusiveroles.py b/exclusiveroles/exclusiveroles.py index a7cc57d..d6b5a9d 100644 --- a/exclusiveroles/exclusiveroles.py +++ b/exclusiveroles/exclusiveroles.py @@ -11,10 +11,11 @@ @cog_i18n(_) class ExclusiveRoles(commands.Cog): """Exclusive Roles""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/httpcat/__init__.py b/httpcat/__init__.py index fa67544..5290f3f 100644 --- a/httpcat/__init__.py +++ b/httpcat/__init__.py @@ -2,4 +2,4 @@ def setup(bot): - bot.add_cog(HttpCat()) \ No newline at end of file + bot.add_cog(HttpCat()) diff --git a/httpcat/httpcat.py b/httpcat/httpcat.py index 32461a9..6d7dc5e 100644 --- a/httpcat/httpcat.py +++ b/httpcat/httpcat.py @@ -5,7 +5,7 @@ class HttpCat(commands.Cog): __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" @@ -15,4 +15,4 @@ async def red_delete_data_for_user(self, *, requester, user_id): @commands.command() async def http(self, ctx, code: int): """Get info on HTTP status codes.""" - await ctx.send(f"http://http.cat/{code}") \ No newline at end of file + await ctx.send(f"http://http.cat/{code}") diff --git a/mcwhitelister/mcwhitelister.py b/mcwhitelister/mcwhitelister.py index a408f56..0bebd65 100644 --- a/mcwhitelister/mcwhitelister.py +++ b/mcwhitelister/mcwhitelister.py @@ -16,7 +16,7 @@ class McWhitelister(commands.Cog): __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/modlogstats/modlogstats.py b/modlogstats/modlogstats.py index ea62aea..af02f48 100644 --- a/modlogstats/modlogstats.py +++ b/modlogstats/modlogstats.py @@ -23,7 +23,7 @@ class ModLogStats(commands.Cog): __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/mover/mover.py b/mover/mover.py index 26a8d78..8fdc4cf 100644 --- a/mover/mover.py +++ b/mover/mover.py @@ -7,7 +7,7 @@ class Mover(commands.Cog): __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" diff --git a/nicknamer/nicknamer.py b/nicknamer/nicknamer.py index 982359f..8df280e 100644 --- a/nicknamer/nicknamer.py +++ b/nicknamer/nicknamer.py @@ -15,14 +15,14 @@ @cog_i18n(_) class NickNamer(commands.Cog): """NickNamer""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" - async def red_delete_data_for_user(self, *, requester, user_id): if requester == "user": return diff --git a/prunecmd/prunecmd.py b/prunecmd/prunecmd.py index 2bab58b..40438e1 100644 --- a/prunecmd/prunecmd.py +++ b/prunecmd/prunecmd.py @@ -7,14 +7,14 @@ @cog_i18n(_) class Prunecmd(commands.Cog): """Prunecmd""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" - async def red_delete_data_for_user(self, *, requester, user_id): # This cog stores no EUD return diff --git a/rolesyncer/rolesyncer.py b/rolesyncer/rolesyncer.py index a13176e..b8e02b7 100644 --- a/rolesyncer/rolesyncer.py +++ b/rolesyncer/rolesyncer.py @@ -9,14 +9,14 @@ @cog_i18n(_) class RoleSyncer(commands.Cog): """Sync Roles""" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" - async def red_delete_data_for_user(self, *, requester, user_id): # This cog doesn't store EUD return diff --git a/stickymember/stickymember.py b/stickymember/stickymember.py index 758e66b..b8faa54 100644 --- a/stickymember/stickymember.py +++ b/stickymember/stickymember.py @@ -11,20 +11,20 @@ @cog_i18n(_) class StickyMember(commands.Cog): - __version__="1.0.0" + __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}" - + async def red_delete_data_for_user(self, *, requester, user_id): data = self.config.all_members() for g in data: for m in g: if m == user_id: await self.config.member_from_ids(g, m).clear() - + def __init__(self): self.config = Config.get_conf(self, 231215102020, force_registration=True) default = {"roles": [], "active": False} diff --git a/verifyer/verifyer.py b/verifyer/verifyer.py index 196dd08..0029e0c 100644 --- a/verifyer/verifyer.py +++ b/verifyer/verifyer.py @@ -13,7 +13,7 @@ class Verifyer(commands.Cog): __version__ = "1.0.0" def format_help_for_context(self, ctx: commands.Context) -> str: - #Thanks Sinbad! And Trusty in whose cogs I found this. + # Thanks Sinbad! And Trusty in whose cogs I found this. pre_processed = super().format_help_for_context(ctx) return f"{pre_processed}\n\nVersion: {self.__version__}"