djLint reads HTML and the template syntax inside it, with profiles for Django, Jinja, Twig, Nunjucks, Handlebars, Mustache, Liquid, Go templates, Angular, Tera, Askama and Mako.
uv tool install djlint or pip install djlint
djlint . --lint finds problems, djlint . --reformat fixes the formatting
djlint --lsp runs the language server for Neovim, Helix, Sublime Text, JetBrains IDEs and Emacs