Djade

Latest version: v1.3.2

Safety actively analyzes 681910 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.3.2

------------------

* Make top-level block unindenting more conservative, avoiding any action after seeing other tags outside of blocks.

`Issue 76 <https://github.com/adamchainz/djade/issues/76>`__.

* Make pre-commit hook exclude Python files by default.

Thanks to Ronny Vedrilla for the report in `Issue 64 <https://github.com/adamchainz/djade/issues/64>`__.

(`Commit b48fc45 in djade-pre-commit <https://github.com/adamchainz/djade-pre-commit/commit/b48fc450f2ef0c3d71f516ba0a8982963bcc992a>`__.)

1.3.1

------------------

* Fix the removal of content from syntactically incorrect variables with filters, for example ``{{ engines[0].name|length }}``.
(Django does not support the ``[0]`` syntax.)

Thanks to roxanebellot for the report in `Issue 92 <https://github.com/adamchainz/djade/issues/92>`__.

1.3.0

------------------

* Drop Python 3.8 support.

* Migrate ``{% with %}`` and ``{% blocktranslate %}`` tags from the legacy ``as`` syntax to new ``=`` syntax.

`Issue 82 <https://github.com/adamchainz/djade/issues/82>`__.

* Avoid stripping trailing whitespace inside ``{% block %}`` tags when trying to unindent top-level ``{% endblock %}`` tags.

Thanks to Gav O'Connor for the report in `Issue 88 <https://github.com/adamchainz/djade/issues/88>`__.

1.2.0

------------------

* Add ``--check`` option to report if changes would be made.

Thanks to Coen van der Kamp for the request in `Issue 79 <https://github.com/adamchainz/djade/issues/79>`__.

* Improve output.
Individual file names are no longer reported, except with ``--check``.
A final summary message lists the number of reformatted and already-formatted files.

1.1.1

------------------

* Detect and use the file’s newline style (Unix ``\n`` versus Windows ``\r\n``).

Thanks to George Kussumoto in `PR 73 <https://github.com/adamchainz/djade/pull/73>`__.

1.1.0

------------------

* Fix handling of the ``{% load ... from .. %}`` syntax, and add sorting of loaded items:

.. code-block:: diff

-{% load steam heat from boiler %}
+{% load heat steam from boiler %}

Thanks to Eric Holscher for the report in `Issue 62 <https://github.com/adamchainz/djade/issues/62>`__.

* Update ``{% load ... from i18n %}`` tags in the Django 3.1+ translate tag fixer.

`Issue 67 <https://github.com/adamchainz/djade/issues/67>`__.

* Fix crash with unlabelled opening ``{% block %}`` tags.

`PR 63 <https://github.com/adamchainz/djade/pull/63>`__.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.