Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9406a5e

Browse files
committedFeb 17, 2025·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 911241d commit 9406a5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎django_downloadview/middlewares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def auto_configure_backend_factory(self):
145145
self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND)
146146
except AttributeError:
147147
raise ImproperlyConfigured(
148-
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_BACKEND"
148+
"SmartDownloadMiddleware requires settings.DOWNLOADVIEW_BACKEND"
149149
)
150150

151151
def auto_configure_backend_options(self):
@@ -155,7 +155,7 @@ def auto_configure_backend_options(self):
155155
options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES)
156156
except AttributeError:
157157
raise ImproperlyConfigured(
158-
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_RULES"
158+
"SmartDownloadMiddleware requires settings.DOWNLOADVIEW_RULES"
159159
)
160160
for key, options in enumerate(options_list):
161161
args = []

‎tests/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ def test_nginx_x_accel_redirect_global_settings(self):
141141
if missed_warnings:
142142
self.fail(
143143
f"No DeprecationWarning raised about following settings: "
144-
f'{", ".join(missed_warnings)}.'
144+
f"{', '.join(missed_warnings)}."
145145
)

0 commit comments

Comments
 (0)
Please sign in to comment.