-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 990 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (23 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Print help message by default (`make` with no arguments)
.DEFAULT_GOAL := help
# Variables ------------------------------------------------------------------------------------------------------------
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
# Colours --------------------------------------------------------------------------------------------------------------
C_RESET=\033[39m
C_BLACK=\033[30m
C_RED=\033[31m
C_GREEN=\033[32m
C_YELLOW=\033[33m
C_BLUE=\033[34m
C_MAGENTA=\033[35m
C_CYAN=\033[36m
C_WHITE=\033[37m
# Targets --------------------------------------------------------------------------------------------------------------
# Nicely formatted and coloured list of possible targets
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "${C_CYAN}%-30s${C_RESET}%s\n", $$1, $$2}'
.PHONY: test
test: ## Run unit tests
pytest --disable-warnings -vvs $(ROOT_DIR)/kellog/tests