djlint 1.40.10 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  <a href="https://www.djlint.com"><img src="https://raw.githubusercontent.com/djlint/djLint/master/docs/src/static/img/icon.png" alt="djLint Logo" width="270"></a>
4
4
  <br>
5
5
  </h1>
6
- <h3 align="center">🏗️ Maintainers needed, please reach out on discord or email!</h3>
7
6
  <h4 align="center">The missing formatter and linter for HTML templates.</h4>
8
7
 
9
8
  <p align="center">
@@ -34,7 +33,7 @@
34
33
  <h4 align="center">What lang are you using?</h4>
35
34
 
36
35
  <p align="center">
37
- <a href="https://djlint.com/docs/languages/django/">Django</a> • <a href="https://djlint.com/docs/languages/jinja/">Jinja</a> • <a href="https://djlint.com/docs/languages/nunjucks/">Nunjucks</a> • <a href="https://djlint.com/docs/languages/twig/">Twig</a> • <a href="https://djlint.com/docs/languages/handlebars/">Handlebars</a> • <a href="https://djlint.com/docs/languages/mustach/">Mustache</a> • <a href="https://djlint.com/docs/languages/golang/">GoLang</a> • <a href="https://djlint.com/docs/languages/angular/">Angular</a>
36
+ <a href="https://djlint.com/docs/languages/django/">Django</a> • <a href="https://djlint.com/docs/languages/jinja/">Jinja</a> • <a href="https://djlint.com/docs/languages/nunjucks/">Nunjucks</a> • <a href="https://djlint.com/docs/languages/twig/">Twig</a> • <a href="https://djlint.com/docs/languages/handlebars/">Handlebars</a> • <a href="https://djlint.com/docs/languages/mustache/">Mustache</a> • <a href="https://djlint.com/docs/languages/golang/">GoLang</a> • <a href="https://djlint.com/docs/languages/angular/">Angular</a>
38
37
  </p>
39
38
 
40
39
  <p align="center">
@@ -57,13 +56,25 @@ Grab it from PyPI with `pip`
57
56
  pip install djlint
58
57
  ```
59
58
 
59
+ Or as a standalone tool with [uv](https://docs.astral.sh/uv/)
60
+
61
+ ```bash
62
+ uv tool install djlint
63
+ ```
64
+
65
+ Or with [pipx](https://pipx.pypa.io/)
66
+
67
+ ```bash
68
+ pipx install djlint
69
+ ```
70
+
60
71
  Or with the community-maintained [Homebrew formula](https://formulae.brew.sh/formula/djlint) on macOS or Linux
61
72
 
62
73
  ```bash
63
74
  brew install djlint
64
75
  ```
65
76
 
66
- _Or with the npm experimental install - Note, this requires python and pip to be on your system path._
77
+ _Or with npm - **warning**: the npm package is only a wrapper, its install script runs `pip install --upgrade djlint` on whatever `python3` is on your system path. npm will not manage or uninstall the actual package - prefer pip directly when possible._
67
78
 
68
79
  ```bash
69
80
  npm i djlint
@@ -125,10 +136,10 @@ _Would you like to add a rule to the linter?_ Take a look at the [linter docs](h
125
136
 
126
137
  _Are you a regex pro?_ Benchmark and submit a pr with improved regex for the [linter rules](https://github.com/djlint/djLint/blob/master/djlint/rules.yaml)
127
138
 
128
- **⚠️ Help Needed! ⚠️** _Good with python?_ djLint was an experimental project and is catching on with other devs. Help out with a rewrite of the formatter to improve speed and html style for edge cases. Contribute on the [2.0 branch](https://github.com/djlint/djLint/tree/block_indent)
129
-
130
139
  ## 🏃 Other Tools Of Note
131
140
 
141
+ - [djade](https://github.com/adamchainz/djade) A fast Django template formatter that formats template syntax whilst leaving HTML as-is, and applies fixes for older Django versions.
142
+ - [djangofmt](https://github.com/UnknownPlatypus/djangofmt) A fast, HTML-aware Django/Jinja template formatter written in Rust that formats HTML and template syntax together.
132
143
  - [DjHTML](https://github.com/rtts/djhtml) A pure-Python Django/Jinja template indenter without dependencies.
133
- - [HTMLHint](https://htmlhint.com) Static code analysis tool you need for your HTML
134
- - [curlylint](https://www.curlylint.org) Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid
144
+ - [prettier-plugin-jinja-template](https://github.com/davidodenwald/prettier-plugin-jinja-template) Prettier plugin for formatting Jinja and Django templates.
145
+ - [Twig-CS-Fixer](https://github.com/VincentLanglet/Twig-CS-Fixer) A PHP tool that lints and automatically fixes Twig coding-standard issues.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djlint",
3
- "version": "1.40.10",
3
+ "version": "1.41.0",
4
4
  "description": "HTML Template Linter and Formatter",
5
5
  "keywords": [
6
6
  "html template linter",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "files": [],
37
37
  "scripts": {
38
- "postinstall": "python3 -m pip install --upgrade djlint==1.40.10"
38
+ "postinstall": "python3 -m pip install --upgrade djlint==1.41.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ianvs/prettier-plugin-sort-imports": "4.7.1",