Skip to content

Commit d285211

Browse files
committed
Add djlint configuration
1 parent bbe8b83 commit d285211

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ repos:
6363
language: python
6464
additional_dependencies: [pygments, restructuredtext_lint]
6565

66+
- repo: local
67+
hooks:
68+
- id: djlint
69+
name: djlint
70+
entry: djlint
71+
files: \.jinja2$
72+
language: python
73+
additional_dependencies: [djlint]
74+
6675
- repo: https://github.com/elidupuis/mirrors-sass-lint
6776
rev: "5cc45653263b423398e4af2561fae362903dd45d"
6877
hooks:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ version-file = "src/pytest_html/__version.py"
9797

9898
[tool.hatch.build.hooks.custom]
9999
path = "scripts/npm.py"
100+
101+
[tool.djlint]
102+
profile="jinja"

0 commit comments

Comments
 (0)