-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 863 Bytes
/
Makefile
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
28
29
30
31
32
33
34
install: ## Install dependencies
@poetry install
format: ## Install dependencies
poetry run black -S .
test: ## Run tests
poetry run coverage run --source=binary_search_tree -m pytest tests
lint: ## Run linter
poetry run flake8 binary_search_tree
selfcheck: ## Checks the validity of the pyproject.toml file
poetry check
check: ## selfcheck + test + lint
@make selfcheck
@make test
@make lint
poetry run black --check
build: ## Check and builds a package
@make check
@poetry build
cc-coverage: ## Prepare coverage report for Codeclimate
poetry run coverage xml
help: ## This help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: install test lint selfcheck check build cc-coverage help
.DEFAULT_GOAL := help