chore: split lint and format recipes

This commit is contained in:
Yohan Boniface 2024-03-25 19:27:57 +01:00
parent 288c7983fc
commit 73c5a963d9

View file

@ -14,16 +14,16 @@ develop: ## Install the test and dev dependencies
.PHONY: format
format: ## Format the code and templates files
djlint umap/templates --reformat &&\
isort --profile black . &&\
ruff format --target-version=py310 .
-djlint umap/templates --reformat
-isort --profile black umap/
-ruff format --target-version=py310 umap/
.PHONY: lint
lint: ## Lint the code and template files
npx eslint umap/static/umap/ &&\
djlint umap/templates --lint &&\
isort --check --profile black umap/ &&\
ruff format --check --target-version=py310 umap/ &&\
npx eslint umap/static/umap/
djlint umap/templates --lint
isort --check --profile black umap/
ruff format --check --target-version=py310 umap/
vermin --no-tips --violations -t=3.10- umap/
docs: ## Compile the docs