chore(deps): update dependency djlint to >=1.49.3 #729
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
servala/servala-portal!729
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/djlint-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
>=1.46.4→>=1.49.3Release Notes
djlint/djLint (djlint)
v1.49.3Compare Source
Bug fixes
{% set %}written across lines indents the arguments of a function call inside it, as it already did for the items of a list or dict (#2819). Its last line stays at the level of the value when it holds part of the value, the lines after the tag are no longer one level too shallow when a bracket opened inside it closes on its last line, a bracket inside a quoted string no longer changes the indentation, and a line that goes on with a string started on the line before is no longer indented, which put spaces into the string.v1.49.2Compare Source
Performance
--use-gitignore."=""can leave in a template, no longer takes minutes to format.v1.49.1Compare Source
Bug fixes
excludeapplies in the language server as it does todjlint <folder>: a document invendor/of a folder with nopyproject.tomlwas not left out.configurationorrules, when a document is opened or saved, also in editors that don't watch files, and updates every open document then.python_modulerule that returns acode,matchormessagethat isn't a string gets a clear error.v1.49.0Compare Source
Features
djlint --lspruns a language server, for findings as you type and formatting in any editor that supports LSP. See Language server.djlint.api.is_excluded()tells whether the configuration leaves out a file.Bug fixes
--stdin-filename, djLint formats the text it is given even if the configuration setsfiles. It formatted those files instead, so an editor formatting a template rewrote them and left the template as it was.--stdin-filenamehonorsexclude,extend-excludeand--use-gitignore: the text of an excluded file comes back unchanged, with no findings.v1.48.1Compare Source
Performance
$before a tag no longer makes linting slow: a line of two hundred thousand of them went from 2.2 seconds to 0.15. Formatting such a line is still slow.v1.48.0Compare Source
Feature
djlint.api, a supported way to format and lint text from Python:load_config(),format_text()andlint_text(), which returns findings with numeric positions. See Python API.--linter-output-formattakes{end}, SARIF reportsendLineandendColumn, and GitHub annotations cover the whole finding. A custom rule'spython_modulecan returnend, and otherwise ends where itsmatchdoes.python_moduleis also looked for in the project root, after everything else on the path, so it works with thedjlintcommand as well as withpython -m djlint.Changed
python_modulerule that returns alinethat isn't a position now stops djLint with an error naming the rule, instead of a traceback from the report.Fix
<li><a …>orRead the <a …>, is laid out from that line. The attributes line up under the first one, or with--single-attribute-per-linesit one indent in from the line with the closing>at the line's indent. They used to be indented as if the tag started the line, so they landed left of the tag, or a single space in after text.v1.47.1Compare Source
Fix
preserve-inlinein thejssettingbrace_styletakes effect, so{ bubbles: true }stays on one line in a<script>or in an attribute formatted with--format-attribute-js-json. It used to be dropped before the code was formatted.cssandjs, so a strict validator such as Tombi no longer reportsindent_sizethere.v1.47.0Compare Source
Feature
--sort-load-tags/sort_load_tagssorts the libraries in a{% load %}tag and drops the ones written twice, so{% load static i18n %}becomes{% load i18n static %}. In{% load a b from library %}the names beforefromare sorted. It is off by default: where two libraries define a tag or filter of the same name, the one loaded last wins, so sorting can change which one a template uses.H012reports around an attribute's=, so<div class = "a">becomes<div class="a">.Changed
H010reports the names the formatter lowercases, in any mix of case, soWidth="3"is now reported. A framework binding such as:itemIDor@IDand a longer name such asdata-IDno longer are, since the formatter leaves their case alone.H018is not reported under--close-void-tags, since the formatter then writes the/>ending the rule reports.--ignore-casealready worked this way forH009andH010.Fix
H020reports an empty pair whose end tag has whitespace before its>, such as<div></div\n>.H026reports aclassoridholding only whitespace, such asclass=" ", and one written with spaces around the=.H033reports an action padded at both ends once. It used to report it twice, unless an attribute beforeactionhappened to make the two reports look the same.<p title="<img src='a'>">, is text, andH005,H008,H010,H012,D018,J018,H024,H026,H029andH033no longer report it.H046andH051readtabindexandrolefrom the tag's own attributes, sotabindex=1written in a value or in the page text is not reported either.T001andT027read a tag holding a dict, such as{{ f({"a": {"b": 1}}) }}, up to the}}that closes it rather than the first}}inside it.T032steps over an escaped quote in a string, so the spaces in{{ x|default:"a \"b c\"" }}are not reported.H015reports a heading followed by a tag on the same line anywhere in the file. It used to look only at the last line.{{{attrs}}}and a dict as in{{ {'class': 'x'}|xmlattr }}, so<img {{ attrs }} src='a'>is reported byH008, which used to stop reading at the{{.T038steps over a string in a block tag, so the{%in{% with a="{%" %}does not cut the tag short.Performance
<, andH015,H030,H036,T001,T027,T038andT039no longer read the rest of the document again for each tag. A file holding thousands of unclosed tags or headings on one line is linted in a fraction of a second, where it used to take minutes.v1.46.6Compare Source
Packaging
LICENSE-THIRD-PARTY.v1.46.5Compare Source
Packaging
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
8a59cbce26c8558211dcc8558211dctoa17bc6891echore(deps): update dependency djlint to >=1.46.6to chore(deps): update dependency djlint to >=1.47.0a17bc6891eec4faecb23ec4faecb23to88802aef14chore(deps): update dependency djlint to >=1.47.0to chore(deps): update dependency djlint to >=1.47.188802aef1429f6d33cfd29f6d33cfd2294c602abchore(deps): update dependency djlint to >=1.47.1to chore(deps): update dependency djlint to >=1.48.12294c602ab56d248ea1cchore(deps): update dependency djlint to >=1.48.1to chore(deps): update dependency djlint to >=1.49.256d248ea1c886637cfd6chore(deps): update dependency djlint to >=1.49.2to chore(deps): update dependency djlint to >=1.49.3