]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
pre-commit: Bump versions
authorStephen Finucane <stephen@that.guru>
Sat, 8 Mar 2025 10:59:34 +0000 (10:59 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 8 Mar 2025 11:08:05 +0000 (11:08 +0000)
Signed-off-by: Stephen Finucane <stephen@that.guru>
.pre-commit-config.yaml
patchwork/models.py
patchwork/parser.py
patchwork/views/mail.py

index d67cf098e5ba2cce5ae5612533f4e8f8f038bd63..e76b64aef2ecdd9c707623614039be0a63840c6c 100644 (file)
@@ -19,7 +19,7 @@ repos:
         exclude: (.*\.mbox)|(.*\.svg)
   - repo: https://github.com/astral-sh/ruff-pre-commit
     # Ruff version.
-    rev: v0.7.0
+    rev: v0.9.10
     hooks:
       # Run the linter.
       - id: ruff
@@ -30,7 +30,7 @@ repos:
     hooks:
       - id: bashate
   - repo: https://github.com/daveshanley/vacuum
-    rev: v0.12.1
+    rev: v0.16.3
     hooks:
       - id: vacuum
         files: ^docs/api/schemas/(latest|v\d\.\d)/patchwork.yaml
index a05db7f9c399ebb1435bf14415b56a9742b6a010..b67d11382b8ed03861216054058bc7643a5eddab 100644 (file)
@@ -394,7 +394,7 @@ class EmailMixin(models.Model):
 
         Reverses :mod:`~url_msgid` and :mod:`~encoded_msgid` operations.
         """
-        return f"<{msgid.replace('%2F', '/')}>"
+        return f'<{msgid.replace("%2F", "/")}>'
 
     def save(self, *args, **kwargs):
         # Modifying a submission via admin interface changes '\n' newlines in
@@ -852,8 +852,7 @@ class Series(FilenameMixin, models.Model):
     submitter = models.ForeignKey(Person, on_delete=models.CASCADE)
     version = models.IntegerField(
         default=1,
-        help_text='Version of series as indicated '
-        'by the subject prefix(es)',
+        help_text='Version of series as indicated by the subject prefix(es)',
     )
     total = models.IntegerField(
         help_text='Number of patches in series as '
index 09a53a08e9f6ba7ae27b7cf401cf97347f26f377..982727c6db9c0ce31d4823ee74680bf2ce3b2ec5 100644 (file)
@@ -207,7 +207,7 @@ def find_project(mail, list_id=None):
 
     if not project:
         logger.debug(
-            'Could not find a valid project for given list-id and ' 'subject.'
+            'Could not find a valid project for given list-id and subject.'
         )
 
     return project
index 8709f0ad071313b1bccaa8c4a40ce1238ba49744..5e1c81629a7446ed055d4f30b2fa72ab4b930d01 100644 (file)
@@ -109,8 +109,7 @@ def _optinout(request, action):
     except smtplib.SMTPException:
         context['confirmation'] = None
         context['error'] = (
-            'An error occurred during confirmation . '
-            'Please try again later.'
+            'An error occurred during confirmation. Please try again later.'
         )
         context['admins'] = conf_settings.ADMINS