Skip to content

Commit

Permalink
Add Jinja2/HTML linting and formatting (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Mar 24, 2024
1 parent fcc9d26 commit 33a702d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .djlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore": "H021,H030,H031"
}
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ repos:
hooks:
- id: prettier
types_or: [css, javascript]
- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88

[tool.djlint]
ignore =
H021,
# Inline styles.
H030,
# Meta description.
H031
# Meta keywords.

0 comments on commit 33a702d

Please sign in to comment.