kopia lustrzana https://github.com/wagtail/bakerydemo
Updated Makefile
rodzic
88ca447f76
commit
00a56197db
13
Makefile
13
Makefile
|
@ -1,13 +1,12 @@
|
||||||
.PHONY: lint format
|
.PHONY: lint format
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "lint - check style with black, flake8, sort python with isort, and indent html"
|
@echo "lint - check style with black, ruff, sort python with ruff, indent html, and lint frontend css/js"
|
||||||
@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, sort python files with ruff and fix frontend css/js"
|
||||||
|
|
||||||
lint-server:
|
lint-server:
|
||||||
black --target-version py37 --check --diff .
|
black --target-version py38 --check --diff .
|
||||||
flake8
|
ruff check .
|
||||||
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
|
||||||
|
|
||||||
|
@ -19,8 +18,8 @@ lint-client:
|
||||||
lint: lint-server lint-client
|
lint: lint-server lint-client
|
||||||
|
|
||||||
format-server:
|
format-server:
|
||||||
black --target-version py37 .
|
black --target-version py38 .
|
||||||
isort .
|
ruff check . --fix
|
||||||
git ls-files '*.html' | xargs djhtml -i
|
git ls-files '*.html' | xargs djhtml -i
|
||||||
|
|
||||||
format-client:
|
format-client:
|
||||||
|
|
Ładowanie…
Reference in New Issue