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:
|
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
|
||||||
|
|
Loading…
Reference in a new issue