Skip to content

Commit d885708

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8a0db3f commit d885708

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

django_downloadview/middlewares.py

+2-2
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

+1-1
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)