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 .PHONY: format
format: ## Format the code and templates files format: ## Format the code and templates files
djlint umap/templates --reformat &&\ -djlint umap/templates --reformat
isort --profile black . &&\ -isort --profile black umap/
ruff format --target-version=py310 . -ruff format --target-version=py310 umap/
.PHONY: lint .PHONY: lint
lint: ## Lint the code and template files lint: ## Lint the code and template files
npx eslint umap/static/umap/ &&\ npx eslint umap/static/umap/
djlint umap/templates --lint &&\ djlint umap/templates --lint
isort --check --profile black umap/ &&\ isort --check --profile black umap/
ruff format --check --target-version=py310 umap/ &&\ ruff format --check --target-version=py310 umap/
vermin --no-tips --violations -t=3.10- umap/ vermin --no-tips --violations -t=3.10- umap/
docs: ## Compile the docs docs: ## Compile the docs