From ffd9bcc001e6634cc45f8a503de3d6f497b88fa5 Mon Sep 17 00:00:00 2001 From: m5ka Date: Sat, 30 Mar 2024 10:42:19 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20format=20code=20to=20be?= =?UTF-8?q?=20compliant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moku/constants.py | 2 +- moku/models/recipe.py | 4 +++- moku/views/post.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/moku/constants.py b/moku/constants.py index b4e2390..f4d5638 100644 --- a/moku/constants.py +++ b/moku/constants.py @@ -246,6 +246,6 @@ EMOJI_CATEGORIES = [ "🪰", ), ), - (_("tools & things"), ("🥄", "🍴", "🍽️", "🥣", "🥡", "🥢", "🧂", "🔪", "🪓", "🫙",)), + (_("tools & things"), ("🥄", "🍴", "🍽️", "🥣", "🥡", "🥢", "🧂", "🔪", "🪓", "🫙")), ] """Defines emoji that are available in the emoji picker widget.""" diff --git a/moku/models/recipe.py b/moku/models/recipe.py index 498ca30..b574e73 100644 --- a/moku/models/recipe.py +++ b/moku/models/recipe.py @@ -29,7 +29,9 @@ class Recipe(models.Model): title = models.CharField( verbose_name=_("recipe title"), max_length=64, - help_text=_("give the recipe a title, just so you know what the recipe is for."), + help_text=_( + "give the recipe a title, just so you know what the recipe is for." + ), ) created_by = models.ForeignKey( "User", diff --git a/moku/views/post.py b/moku/views/post.py index 78f6d7c..7fd0a5d 100644 --- a/moku/views/post.py +++ b/moku/views/post.py @@ -36,7 +36,8 @@ class DeletePostView(LoginRequiredMixin, UserPassesTestMixin, FormView): def get_context_data(self, **kwargs): return { **super().get_context_data(**kwargs), - "item": _("%(post_text)s from %(time_ago)s") % { + "item": _("%(post_text)s from %(time_ago)s") + % { "post_text": self.post_object.plain_text, "time_ago": naturaltime(self.post_object.created_at), },