From 73f9c013cd5218860a37e6972440f6078361d655 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 19:50:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- django_downloadview/middlewares.py | 4 ++-- tests/api.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django_downloadview/middlewares.py b/django_downloadview/middlewares.py index ef8f9c0..7b7b39c 100644 --- a/django_downloadview/middlewares.py +++ b/django_downloadview/middlewares.py @@ -145,7 +145,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware): self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND) except AttributeError: raise ImproperlyConfigured( - "SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_BACKEND" + "SmartDownloadMiddleware requires settings.DOWNLOADVIEW_BACKEND" ) def auto_configure_backend_options(self): @@ -155,7 +155,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware): options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES) except AttributeError: raise ImproperlyConfigured( - "SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_RULES" + "SmartDownloadMiddleware requires settings.DOWNLOADVIEW_RULES" ) for key, options in enumerate(options_list): args = [] diff --git a/tests/api.py b/tests/api.py index 713a5b0..e0223e1 100644 --- a/tests/api.py +++ b/tests/api.py @@ -141,5 +141,5 @@ class DeprecatedAPITestCase(django.test.SimpleTestCase): if missed_warnings: self.fail( f"No DeprecationWarning raised about following settings: " - f'{", ".join(missed_warnings)}.' + f"{', '.join(missed_warnings)}." )