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

View file

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