|
@@ -3,7 +3,7 @@
|
|
|
help:
|
|
|
@echo "clean-pyc - remove Python file artifacts"
|
|
|
@echo "develop - install development dependencies"
|
|
|
- @echo "lint - check style with black, ruff, sort python with ruff, indent html, and lint frontend css/js"
|
|
|
+ @echo "lint - check style with ruff, sort python with ruff, indent html, and lint frontend css/js"
|
|
|
@echo "format - enforce a consistent code style across the codebase, sort python files with ruff and fix frontend css/js"
|
|
|
@echo "test - run tests"
|
|
|
@echo "coverage - check code coverage"
|
|
@@ -18,7 +18,7 @@ develop: clean-pyc
|
|
|
npm install --no-save && npm run build
|
|
|
|
|
|
lint-server:
|
|
|
- black --target-version py38 --check --diff .
|
|
|
+ ruff format --check .
|
|
|
ruff check .
|
|
|
curlylint --parse-only wagtail
|
|
|
git ls-files '*.html' | xargs djhtml --check
|
|
@@ -35,8 +35,8 @@ lint-docs:
|
|
|
lint: lint-server lint-client lint-docs
|
|
|
|
|
|
format-server:
|
|
|
- black --target-version py38 .
|
|
|
ruff check . --fix
|
|
|
+ ruff format .
|
|
|
git ls-files '*.html' | xargs djhtml
|
|
|
|
|
|
format-client:
|