Use `find` for HTML files not `git ls-files`

The problem with `ls-files` is that it doesn't work when files are
renamed unless you `git add` beforehand.
This commit is contained in:
Jake Howard 2022-08-20 14:22:59 +01:00
parent 3e6547881e
commit e0998c7ed8
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ coverage:
format:
black .
isort .
git ls-files '*.html' | xargs djhtml -i --tabwidth 2
find website/ -name '*.html' | xargs djhtml -i --tabwidth 2
npm run format
lint: lint_python lint_node
@ -45,7 +45,7 @@ lint_python:
flake8
mypy . --show-error-codes
curlylint .
git ls-files '*.html' | xargs djhtml --check --tabwidth 2
find website/ -name '*.html' | xargs djhtml --check --tabwidth 2
@lint_node:
npm run lint