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
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
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
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 '
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