diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d32963..d0eadb9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -22,7 +22,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.1.3 + rev: 2.2.4 hooks: - id: pyproject-fmt - repo: https://github.com/asottile/setup-cfg-fmt @@ -32,19 +32,19 @@ repos: args: - --include-version-classifiers - repo: https://github.com/rstcheck/rstcheck - rev: v6.2.0 + rev: v6.2.4 hooks: - id: rstcheck additional_dependencies: - sphinx==6.1.3 - tomli==2.0.1 - repo: https://github.com/asottile/pyupgrade - rev: v3.16.0 + rev: v3.17.0 hooks: - id: pyupgrade args: [--py310-plus] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs @@ -54,16 +54,16 @@ repos: additional_dependencies: - black==23.12.0 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.2 hooks: - id: mypy - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.0" + rev: "v0.6.9" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/adamchainz/django-upgrade - rev: "1.19.0" + rev: "1.21.0" hooks: - id: django-upgrade args: [--target-version, "5.0"] diff --git a/tests/test_forms.py b/tests/test_forms.py index e5d16e5..eb6ea22 100644 --- a/tests/test_forms.py +++ b/tests/test_forms.py @@ -1,5 +1,6 @@ from django.test import TestCase from django.utils.safestring import SafeString + from django_nh3.forms import Nh3Field # import urls to get coverage diff --git a/tests/test_models.py b/tests/test_models.py index 9bcda42..885abe5 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -2,6 +2,7 @@ from django.forms import ModelForm from django.test import TestCase from django.utils.safestring import SafeString + from django_nh3.models import Nh3Field diff --git a/tests/test_settings.py b/tests/test_settings.py index ab0581b..d08161b 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -1,6 +1,7 @@ from unittest.mock import patch from django.test import TestCase + from django_nh3.utils import get_nh3_default_options from .constants import ALLOWED_ATTRIBUTES, ALLOWED_TAGS, STRIP_COMMENTS