|
@@ -4,14 +4,27 @@ help:
|
|
@echo "lint - check style with black, flake8, sort python with isort, and indent html"
|
|
@echo "lint - check style with black, flake8, sort python with isort, and indent html"
|
|
@echo "format - enforce a consistent code style across the codebase and sort python files with isort"
|
|
@echo "format - enforce a consistent code style across the codebase and sort python files with isort"
|
|
|
|
|
|
-lint:
|
|
|
|
|
|
+lint-server:
|
|
black --target-version py37 --check --diff .
|
|
black --target-version py37 --check --diff .
|
|
flake8
|
|
flake8
|
|
isort --check-only --diff .
|
|
isort --check-only --diff .
|
|
curlylint --parse-only bakerydemo
|
|
curlylint --parse-only bakerydemo
|
|
git ls-files '*.html' | xargs djhtml --check
|
|
git ls-files '*.html' | xargs djhtml --check
|
|
|
|
|
|
-format:
|
|
|
|
|
|
+lint-client:
|
|
|
|
+ npm run lint:css --silent
|
|
|
|
+ npm run lint:js --silent
|
|
|
|
+ npm run lint:format --silent
|
|
|
|
+
|
|
|
|
+lint: lint-server lint-client
|
|
|
|
+
|
|
|
|
+format-server:
|
|
black --target-version py37 .
|
|
black --target-version py37 .
|
|
isort .
|
|
isort .
|
|
git ls-files '*.html' | xargs djhtml -i
|
|
git ls-files '*.html' | xargs djhtml -i
|
|
|
|
+
|
|
|
|
+format-client:
|
|
|
|
+ npm run format
|
|
|
|
+ npm run fix:js
|
|
|
|
+
|
|
|
|
+format: format-server format-client
|