Skip to content

Commit 30a6b94

Browse files
committed
format with djlint
1 parent a19cc22 commit 30a6b94

File tree

3 files changed

+261
-180
lines changed

3 files changed

+261
-180
lines changed

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,36 @@ repos:
4747
- id: pretty-format-toml
4848
args: [--autofix, --indent, '4', --no-sort, --trailing-commas]
4949

50+
- repo: https://github.com/djlint/djLint
51+
rev: v1.36.4
52+
hooks:
53+
- id: djlint
54+
exclude: |
55+
(?x)^(
56+
docs/overrides/main.html|
57+
docs/overrides/404.html
58+
)$
59+
- id: djlint-reformat
60+
exclude: |
61+
(?x)^(
62+
docs/overrides/main.html|
63+
docs/overrides/404.html
64+
)$
65+
- id: djlint-jinja
66+
exclude: |
67+
(?x)^(
68+
docs/overrides/main.html|
69+
docs/overrides/404.html|
70+
templates/.*
71+
)$
72+
- id: djlint-reformat-jinja
73+
exclude: |
74+
(?x)^(
75+
docs/overrides/main.html|
76+
docs/overrides/404.html|
77+
templates/.*
78+
)$
79+
5080
- repo: https://github.com/psf/black-pre-commit-mirror
5181
rev: 25.11.0
5282
hooks:

0 commit comments

Comments
 (0)