-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 736 Bytes
/
Makefile
File metadata and controls
20 lines (16 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: help
.DEFAULT_GOAL := help
# You may want to install awk if you don't have already
# google it: Install awk in Windows|Linux|MacOS
help: ## show make targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; \
{printf "\033[36m%-20s", $$1} \
/#__danger/ {printf "\033[31m%s ", "DANGER"} \
{gsub(/#__danger /, ""); printf "\033[0m%s\n", $$2}'
format: ## format code using Black (https://github.com/ambv/black)
black ./{{cookiecutter.django_project_name}} ./hooks
format-diff: ## show how the code will be formatted with Black
black ./{{cookiecutter.django_project_name}} ./hooks
list-outdated: ## show outdated packages from requirement files of this project
pip list --outdated