Skip to content

pre-commit: Add djlint hooks to format and lint django templates

djLint is a recent tool enabling to format Django HTML templates in a consistent style but also to lint them in order to detect errors and bad practices.

So add two new pre-commit hooks to apply such processings on swh-web Django templates.

Also apply formatting to all swh-web Django templates and fix linting errors.

Merge request reports