diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 50666b7..3bb78ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,12 +23,12 @@ repos: hooks: - id: absolufy-imports - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.22 + rev: v0.16.2 hooks: - id: ruff - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.25.3 + rev: v2.27.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject diff --git a/tests/testapp/models.py b/tests/testapp/models.py index ad8cf98..3f59719 100644 --- a/tests/testapp/models.py +++ b/tests/testapp/models.py @@ -100,7 +100,7 @@ class HoneypotField(forms.CharField): def validate(self, value): super().validate(value) if value: - raise forms.ValidationError(f"Invalid honeypot value {repr(value)}") + raise forms.ValidationError(f"Invalid honeypot value {value!r}") class Honeypot(forms_models.FormFieldBase, ConfiguredFormPlugin): diff --git a/tests/testapp/test_forms.py b/tests/testapp/test_forms.py index 63b6cb8..1051279 100644 --- a/tests/testapp/test_forms.py +++ b/tests/testapp/test_forms.py @@ -345,7 +345,6 @@ def test_formtype_getattr(self): regions="required", form_class="required", validate="required", - # int=42, module="django.test", nothing="no.thing",