diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e76d49..6d4a5db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit # keep in sync with .github/workflows/ruff.yml - rev: 'v0.5.0' + rev: 'v0.13.3' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/wagtail_bynder/management/commands/base.py b/src/wagtail_bynder/management/commands/base.py index c7c4b02..7d53ccd 100644 --- a/src/wagtail_bynder/management/commands/base.py +++ b/src/wagtail_bynder/management/commands/base.py @@ -33,8 +33,7 @@ def add_arguments(self, parser): "--minutes", type=int, help=_( - "The number of minutes into the past to look for asset " - "modifications." + "The number of minutes into the past to look for asset modifications." ), ) parser.add_argument( diff --git a/tests/test_management_commands.py b/tests/test_management_commands.py index 27beb17..1614c5b 100644 --- a/tests/test_management_commands.py +++ b/tests/test_management_commands.py @@ -1,7 +1,6 @@ import datetime from io import StringIO -from typing import Type from unittest import mock from django.core.management import call_command @@ -44,7 +43,7 @@ class SyncCommandTestsMixin: """ command_name: str = "" - command_class: Type = None + command_class: type = None uses_media_info_for_individual_assets: bool = False @classmethod @@ -221,8 +220,8 @@ class RefreshCommandTestsMixin: """ command_name: str = "" - command_class: Type - factory_class: Type + command_class: type + factory_class: type @classmethod def setUpClass(cls): diff --git a/tests/test_wagtail_overrides.py b/tests/test_wagtail_overrides.py index 49262cd..9f2ee16 100644 --- a/tests/test_wagtail_overrides.py +++ b/tests/test_wagtail_overrides.py @@ -76,10 +76,10 @@ def test_admin_base_template_override_is_working(self): html = response.content.decode("utf-8") self.assertIn( - f'