Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent b6a419b commit 43e77f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_downloadview/middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def auto_configure_backend_factory(self):
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):
Expand All @@ -155,7 +155,7 @@ def auto_configure_backend_options(self):
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 = []
Expand Down
2 changes: 1 addition & 1 deletion tests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ def test_nginx_x_accel_redirect_global_settings(self):
if missed_warnings:
self.fail(
f"No DeprecationWarning raised about following settings: "
f'{", ".join(missed_warnings)}.'
f"{', '.join(missed_warnings)}."
)

0 comments on commit 43e77f3

Please sign in to comment.