diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b13a377..94d3415 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,19 +3,19 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.18.0 + rev: v3.19.1 hooks: - id: pyupgrade args: ["--py38-plus"] - repo: https://github.com/adamchainz/django-upgrade - rev: 1.22.1 + rev: 1.22.2 hooks: - id: django-upgrade args: ["--target-version", "3.0"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.9.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/maintenance_mode/core.py b/maintenance_mode/core.py index 0af6ef1..cc99d91 100644 --- a/maintenance_mode/core.py +++ b/maintenance_mode/core.py @@ -48,7 +48,7 @@ def set_maintenance_mode(value): # If maintenance mode is defined in settings, it can't be changed. if settings.MAINTENANCE_MODE is not None: raise ImproperlyConfigured( - "Maintenance mode cannot be set dynamically " "if defined in settings." + "Maintenance mode cannot be set dynamically if defined in settings." ) if not isinstance(value, bool): diff --git a/maintenance_mode/management/commands/maintenance_mode.py b/maintenance_mode/management/commands/maintenance_mode.py index e6a1d6a..d567c5f 100644 --- a/maintenance_mode/management/commands/maintenance_mode.py +++ b/maintenance_mode/management/commands/maintenance_mode.py @@ -7,8 +7,7 @@ class Command(BaseCommand): args = "" help = ( - f"run python manage.py maintenance_mode {args} " - "to change maintenance-mode state" + f"run python manage.py maintenance_mode {args} to change maintenance-mode state" ) def add_arguments(self, parser):