瀏覽代碼

Updated Makefile

John-Scott Atlakson 1 年之前
父節點
當前提交
00a56197db
共有 1 個文件被更改,包括 6 次插入7 次删除
  1. 6 7
      Makefile

+ 6 - 7
Makefile

@@ -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: