forked from ludeeus/awesomeversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 936 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
.DEFAULT_GOAL := help
help: ## Shows this help message
@printf "\033[1m%s\033[36m %s\033[32m %s\033[0m \n\n" "Development environment for" "ludeeus/awesomeversion" "";
@awk 'BEGIN {FS = ":.*##";} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m make %-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);
@echo
requirements: ## Install requirements
@python3 -m pip --disable-pip-version-check install -r requirements.txt
test: ## Run all tests
@python3 -m pytest tests -rxf -x -vv -l -s --cov=./ --cov-report=xml
lint: isort black mypy pylint ## Lint all files
coverage: ## Check the coverage of the package
@python3 -m pytest tests -rxf -x -v -l --cov=./ --cov-report=xml > /dev/null
@coverage report
isort:
@python3 -m isort .
black:
@python3 -m black --fast awesomeversion tests
mypy:
@python3 -m mypy --strict awesomeversion
pylint:
@python3 -m pylint awesomeversion