[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-10-20 19:50:02 +00:00
parent 840827da1d
commit 73f9c013cd
2 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware):
self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND) self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND)
except AttributeError: except AttributeError:
raise ImproperlyConfigured( raise ImproperlyConfigured(
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_BACKEND" "SmartDownloadMiddleware requires settings.DOWNLOADVIEW_BACKEND"
) )
def auto_configure_backend_options(self): def auto_configure_backend_options(self):
@ -155,7 +155,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware):
options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES) options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES)
except AttributeError: except AttributeError:
raise ImproperlyConfigured( raise ImproperlyConfigured(
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_RULES" "SmartDownloadMiddleware requires settings.DOWNLOADVIEW_RULES"
) )
for key, options in enumerate(options_list): for key, options in enumerate(options_list):
args = [] args = []

View file

@ -141,5 +141,5 @@ class DeprecatedAPITestCase(django.test.SimpleTestCase):
if missed_warnings: if missed_warnings:
self.fail( self.fail(
f"No DeprecationWarning raised about following settings: " f"No DeprecationWarning raised about following settings: "
f'{", ".join(missed_warnings)}.' f"{', '.join(missed_warnings)}."
) )