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:
parent
3e6547881e
commit
e0998c7ed8
1 changed files with 2 additions and 2 deletions
4
justfile
4
justfile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue