Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions src/wagtail_bynder/management/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
7 changes: 3 additions & 4 deletions tests/test_management_commands.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_wagtail_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def test_admin_base_template_override_is_working(self):
html = response.content.decode("utf-8")

self.assertIn(
f'<script src="{ settings.STATIC_URL }wagtailadmin/js/chooser-modal-handler-factory.js">',
f'<script src="{settings.STATIC_URL}wagtailadmin/js/chooser-modal-handler-factory.js">',
html,
)
self.assertIn(
f'<script src="{ settings.STATIC_URL }bynder/js/compactview-v4.0.0.js">',
f'<script src="{settings.STATIC_URL}bynder/js/compactview-v4.0.0.js">',
html,
)