forked from sanketsaurav/belvo-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (15 loc) · 813 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.DEFAULT_GOAL := help
.PHONY: help
help: ## Shows this help message
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target> <arg=value>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m %s\033[0m\n\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
##@ 🛠 Testing and development
.PHONY: test-unit
test-unit: ## Run all or specific unit tests. Arguments: name=NAME-OF-TEST will run a specific test
./scripts/run-tests.sh $(name)
.PHONY: linting
linting: ## Check of fix code linting using black and isort. Arguments: fix=yes will force changes
./scripts/run-linting.sh $(fix)
##@ 🚀 Releasing
.PHONY: new-version
new-version: ## Bump version and add commit message. Arguments: type=major|minor|patch
./scripts/bump-version.sh $(type)