Linter i formater szablonów Django
djLint lintuje i formatuje szablony Django. Ustaw profil django, aby reguły i formatowanie były do nich dopasowane.
Z wiersza poleceń
djlint /path/to/templates --profile=django
Lub w pliku konfiguracyjnym
Skonfiguruj djLint w pliku pyproject.toml, djlint.toml / .djlint.toml lub .djlintrc swojego projektu.
[tool.djlint]
profile = "django"
profile = "django"
{ "profile": "django" }