Updated Makefile

pull/449/head
John-Scott Atlakson 2023-11-09 19:18:20 -08:00 zatwierdzone przez Thibaud Colas
rodzic 88ca447f76
commit 00a56197db
1 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -1,13 +1,12 @@
.PHONY: lint format
help:
@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 "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, sort python files with ruff and fix frontend css/js"
lint-server:
black --target-version py37 --check --diff .
flake8
isort --check-only --diff .
black --target-version py38 --check --diff .
ruff check .
curlylint --parse-only bakerydemo
git ls-files '*.html' | xargs djhtml --check
@ -19,8 +18,8 @@ lint-client:
lint: lint-server lint-client
format-server:
black --target-version py37 .
isort .
black --target-version py38 .
ruff check . --fix
git ls-files '*.html' | xargs djhtml -i
format-client: