From: Stephen Finucane Date: Sat, 8 Mar 2025 10:59:34 +0000 (+0000) Subject: pre-commit: Bump versions X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e96a2d3517b4ea8a715d8e051ee65c625624922b;p=thirdparty%2Fpatchwork.git pre-commit: Bump versions Signed-off-by: Stephen Finucane --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d67cf098..e76b64ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/patchwork/models.py b/patchwork/models.py index a05db7f9..b67d1138 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -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 ' diff --git a/patchwork/parser.py b/patchwork/parser.py index 09a53a08..982727c6 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -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 diff --git a/patchwork/views/mail.py b/patchwork/views/mail.py index 8709f0ad..5e1c8162 100644 --- a/patchwork/views/mail.py +++ b/patchwork/views/mail.py @@ -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