-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 760 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 760 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
28
29
30
install: ## Install dependencies
@poetry install
test: ## Run tests
poetry run coverage run --source=gendiff -m pytest tests
lint: ## Run linter
poetry run flake8 gendiff
selfcheck: ## Checks the validity of the pyproject.toml file
poetry check
check: ## selfcheck + test + lint
@make selfcheck
@make test
@make lint
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