Skip to content

Update djlint to 1.40.10#6738

Merged
browniebroke merged 3 commits into
mainfrom
pyup-update-djlint-1.40.8-to-1.40.10
Jul 20, 2026
Merged

Update djlint to 1.40.10#6738
browniebroke merged 3 commits into
mainfrom
pyup-update-djlint-1.40.8-to-1.40.10

Conversation

@pyup-bot

Copy link
Copy Markdown
Collaborator

This PR updates djlint from 1.40.8 to 1.40.10.

Changelog

1.40.10

Fix

- Fix crashes in mypyc-compiled wheels: `AttributeError: attribute 'reformat' of 'Config' objects is not writable` when linting or formatting multiple files, and `AttributeError: attribute 'start' of 'TagToken' objects is not writable` when processing a file.

1.40.9

Fix

- Indent content inside Django `{% cache %}`, `{% timezone %}`, `{% localtime %}` and `{% localize %}` blocks instead of dedenting everything after them.
- Format django-cotton component tags such as `<c-card>` and `<c-forms.input />` as block HTML tags without requiring `custom_html` configuration.
- Preserve whitespace-only content of inline elements as a single space instead of dropping it, so runs like `<b>bold</b><span> </span><i>italic</i>` keep rendering a space; non-collapsible whitespace such as U+2005 is kept verbatim.
- Preserve line breaks inside hyperscript `_` attribute values, where a newline separates commands and `--` comments run to the end of the line.
- Stop inserting line breaks into attribute values that render whitespace verbatim; only `class` and `style` values are spread over multiple lines with `format_attribute_template_tags`.
- Leave `{% comment %}` block content untouched when reformatting, e.g. bare URLs ending in `/>`.
- Apply rule-specific `djlint:off RULE` suppression to any finding overlapping the region, so reformatted guards keep linting clean.
- Avoid false H037 reports for attribute names with a conditional template prefix, e.g. `{% if x %}data-{% endif %}srcset`.
- Avoid false reports for HTML-like content inside template tag arguments, e.g. H008 on quotes in a string argument.
Links

@browniebroke
browniebroke merged commit d02128c into main Jul 20, 2026
24 checks passed
@browniebroke
browniebroke deleted the pyup-update-djlint-1.40.8-to-1.40.10 branch July 20, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants