diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e76d49..416a23d 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.15.20' 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 0ad44cc..9081b32 100644 --- a/src/wagtail_bynder/management/commands/base.py +++ b/src/wagtail_bynder/management/commands/base.py @@ -34,8 +34,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 e0bbed8..b7c17ca 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 @@ -45,7 +44,7 @@ class SyncCommandTestsMixin: """ command_name: str = "" - command_class: Type = None + command_class: type = None uses_media_info_for_individual_assets: bool = False @classmethod @@ -222,8 +221,8 @@ class RefreshCommandTestsMixin: """ command_name: str = "" - command_class: Type - factory_class: Type + command_class: type + factory_class: type @classmethod def setUpClass(cls): @@ -407,7 +406,7 @@ class SyncCommandErrorHandlingMixin: """ command_name: str = "" - factory_class: Type + factory_class: type @classmethod def setUpTestData(cls): @@ -472,7 +471,7 @@ class RefreshCommandErrorHandlingMixin: """ command_name: str = "" - factory_class: Type + factory_class: type @classmethod def setUpTestData(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'