Add djhtml

This commit is contained in:
Jake Howard 2022-08-03 20:37:34 +01:00
parent e096dd8cf5
commit 512f9cd3b9
Signed by: jake
GPG Key ID: 57AFB45680EDD477
6 changed files with 20 additions and 11 deletions

View File

@ -108,6 +108,11 @@ curlylint:
script:
- curlylint .
djhtml:
<<: *python_test_template
script:
- git ls-files '*.html' | xargs djhtml --check --tabwidth 2
prettier:
<<: *node_test_template
script:

View File

@ -28,6 +28,7 @@ test *ARGS:
format:
black .
isort .
git ls-files '*.html' | xargs djhtml -i --tabwidth 2
npm run format
lint: lint_python lint_node
@ -38,6 +39,7 @@ lint_python:
flake8
mypy . --show-error-codes
curlylint .
git ls-files '*.html' | xargs djhtml --check --tabwidth 2
@lint_node:
npm run lint

View File

@ -11,3 +11,4 @@ django-debug-toolbar
types-requests
mypy
curlylint
djhtml

View File

@ -30,6 +30,7 @@ django-rq==2.5.1 # via -r requirements/base.txt
django-taggit==2.1.0 # via -r requirements/base.txt, wagtail
django-treebeard==4.5.1 # via -r requirements/base.txt, wagtail
djangorestframework==3.13.1 # via -r requirements/base.txt, wagtail
djhtml==1.5.1 # via -r requirements/dev.in
draftjs-exporter==2.1.7 # via -r requirements/base.txt, wagtail
et-xmlfile==1.1.0 # via -r requirements/base.txt, openpyxl
flake8==4.0.1 # via -r requirements/dev.in