From 241867398a1c3b469f86d2c4c97a8517a8f1ac05 Mon Sep 17 00:00:00 2001 From: Ronny Vedrilla Date: Mon, 14 Oct 2024 14:32:52 +0200 Subject: [PATCH] v11.5.1 --- .pre-commit-config.yaml | 16 ++++++++++++++-- scripts/unix/publish_to_pypi.sh | 2 +- scripts/windows/publish_to_pypi.ps1 | 2 +- testapp/templates/403.html | 4 ++-- testapp/templates/testapp/test_template.html | 1 - 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9916b11..e9018aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,11 +24,23 @@ repos: hooks: - id: pyupgrade args: [ --py39-plus ] - stages: [ push ] + stages: [ pre-push ] - repo: https://github.com/adamchainz/django-upgrade rev: 1.21.0 hooks: - id: django-upgrade args: [--target-version, "4.2"] - stages: [ push ] + stages: [ pre-push ] + + - repo: https://github.com/adamchainz/djade-pre-commit + rev: 1.3.0 + hooks: + - id: djade + args: [--target-version, "4.2"] + exclude: | + (?x)^( + charts/.* + |.*\.py + |.github/ci\.py + )$ diff --git a/scripts/unix/publish_to_pypi.sh b/scripts/unix/publish_to_pypi.sh index 5fbe95a..83a3063 100644 --- a/scripts/unix/publish_to_pypi.sh +++ b/scripts/unix/publish_to_pypi.sh @@ -1,2 +1,2 @@ flit publish --repository testpypi - flit publish \ No newline at end of file + flit publish diff --git a/scripts/windows/publish_to_pypi.ps1 b/scripts/windows/publish_to_pypi.ps1 index 5fbe95a..83a3063 100644 --- a/scripts/windows/publish_to_pypi.ps1 +++ b/scripts/windows/publish_to_pypi.ps1 @@ -1,2 +1,2 @@ flit publish --repository testpypi - flit publish \ No newline at end of file + flit publish diff --git a/testapp/templates/403.html b/testapp/templates/403.html index ddeffef..b05d54f 100644 --- a/testapp/templates/403.html +++ b/testapp/templates/403.html @@ -50,10 +50,10 @@ {% block body %}
-

{% trans "Error 403" %}

+

{% translate "Error 403" %}

You don't have access to this page.

-{% endblock %} +{% endblock body %} diff --git a/testapp/templates/testapp/test_template.html b/testapp/templates/testapp/test_template.html index 053f22c..4811ca1 100644 --- a/testapp/templates/testapp/test_template.html +++ b/testapp/templates/testapp/test_template.html @@ -8,4 +8,3 @@ -