Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -10,11 +10,11 @@ repos:
- id: file-contents-sorter
files: docs/spelling_wordlist.txt
- repo: https://github.com/pycqa/doc8
rev: v1.1.2
rev: v2.0.0
hooks:
- id: doc8
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.22.2
rev: 1.29.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
Expand All @@ -32,7 +32,7 @@ repos:
args:
- --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.17.0
rev: v9.37.0
hooks:
- id: eslint
additional_dependencies:
Expand All @@ -44,16 +44,16 @@ repos:
args:
- --fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.8.6'
rev: 'v0.14.0'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0
rev: v2.10.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
rev: v0.24.1
hooks:
- id: validate-pyproject
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)}."
)
Loading