Skip to content

Commit e96a2d3

Browse files
committed
pre-commit: Bump versions
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 16d23ea commit e96a2d3

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
exclude: (.*\.mbox)|(.*\.svg)
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
2121
# Ruff version.
22-
rev: v0.7.0
22+
rev: v0.9.10
2323
hooks:
2424
# Run the linter.
2525
- id: ruff
@@ -30,7 +30,7 @@ repos:
3030
hooks:
3131
- id: bashate
3232
- repo: https://github.com/daveshanley/vacuum
33-
rev: v0.12.1
33+
rev: v0.16.3
3434
hooks:
3535
- id: vacuum
3636
files: ^docs/api/schemas/(latest|v\d\.\d)/patchwork.yaml

patchwork/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def decode_msgid(msgid):
394394
395395
Reverses :mod:`~url_msgid` and :mod:`~encoded_msgid` operations.
396396
"""
397-
return f"<{msgid.replace('%2F', '/')}>"
397+
return f'<{msgid.replace("%2F", "/")}>'
398398

399399
def save(self, *args, **kwargs):
400400
# Modifying a submission via admin interface changes '\n' newlines in
@@ -852,8 +852,7 @@ class Series(FilenameMixin, models.Model):
852852
submitter = models.ForeignKey(Person, on_delete=models.CASCADE)
853853
version = models.IntegerField(
854854
default=1,
855-
help_text='Version of series as indicated '
856-
'by the subject prefix(es)',
855+
help_text='Version of series as indicated by the subject prefix(es)',
857856
)
858857
total = models.IntegerField(
859858
help_text='Number of patches in series as '

patchwork/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def find_project(mail, list_id=None):
207207

208208
if not project:
209209
logger.debug(
210-
'Could not find a valid project for given list-id and ' 'subject.'
210+
'Could not find a valid project for given list-id and subject.'
211211
)
212212

213213
return project

patchwork/views/mail.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ def _optinout(request, action):
109109
except smtplib.SMTPException:
110110
context['confirmation'] = None
111111
context['error'] = (
112-
'An error occurred during confirmation . '
113-
'Please try again later.'
112+
'An error occurred during confirmation. Please try again later.'
114113
)
115114
context['admins'] = conf_settings.ADMINS
116115

0 commit comments

Comments
 (0)