djlint 1.40.10 → 1.42.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 +19 -14
  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">
@@ -13,12 +12,6 @@
13
12
  </a>
14
13
  </p>
15
14
  <p align="center">
16
- <a href="https://codecov.io/gh/djlint/djlint">
17
- <img src="https://codecov.io/gh/djlint/djlint/branch/master/graph/badge.svg?token=eNTG721BAA" alt="Codecov Status">
18
- </a>
19
- <a href="https://www.codacy.com/gh/djlint/djlint/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=djlint/djlint&amp;utm_campaign=Badge_Grade">
20
- <img src="https://app.codacy.com/project/badge/Grade/dba6338b0e7a4de896b45b382574f369" alt="Codacy Status">
21
- </a>
22
15
  <a href="https://pepy.tech/project/djlint">
23
16
  <img src="https://pepy.tech/badge/djlint" alt="Downloads">
24
17
  </a>
@@ -34,7 +27,7 @@
34
27
  <h4 align="center">What lang are you using?</h4>
35
28
 
36
29
  <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>
30
+ <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/askama/">Askama</a> • <a href="https://djlint.com/docs/languages/tera/">Tera</a> • <a href="https://djlint.com/docs/languages/liquid/">Liquid</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
31
  </p>
39
32
 
40
33
  <p align="center">
@@ -57,13 +50,25 @@ Grab it from PyPI with `pip`
57
50
  pip install djlint
58
51
  ```
59
52
 
53
+ Or as a standalone tool with [uv](https://docs.astral.sh/uv/)
54
+
55
+ ```bash
56
+ uv tool install djlint
57
+ ```
58
+
59
+ Or with [pipx](https://pipx.pypa.io/)
60
+
61
+ ```bash
62
+ pipx install djlint
63
+ ```
64
+
60
65
  Or with the community-maintained [Homebrew formula](https://formulae.brew.sh/formula/djlint) on macOS or Linux
61
66
 
62
67
  ```bash
63
68
  brew install djlint
64
69
  ```
65
70
 
66
- _Or with the npm experimental install - Note, this requires python and pip to be on your system path._
71
+ _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
72
 
68
73
  ```bash
69
74
  npm i djlint
@@ -92,7 +97,7 @@ Or use `pre-commit` to reformat, then lint!
92
97
  ```yaml
93
98
  repos:
94
99
  - repo: https://github.com/djlint/djLint
95
- rev: v1.36.4 # use latest version instead
100
+ rev: v1.41.0 # use latest version instead
96
101
  hooks:
97
102
  - id: djlint-reformat
98
103
  - id: djlint
@@ -125,10 +130,10 @@ _Would you like to add a rule to the linter?_ Take a look at the [linter docs](h
125
130
 
126
131
  _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
132
 
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
133
  ## 🏃 Other Tools Of Note
131
134
 
135
+ - [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.
136
+ - [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
137
  - [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
138
+ - [prettier-plugin-jinja-template](https://github.com/davidodenwald/prettier-plugin-jinja-template) Prettier plugin for formatting Jinja and Django templates.
139
+ - [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.42.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.42.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ianvs/prettier-plugin-sort-imports": "4.7.1",