1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
.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" "aiopyarr" "";
@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
lint: ## Lint all files
@isort .
@python3 -m black --fast .
@python3 -m pylint aiopyarr tests
@python3 -m flake8 aiopyarr tests
@python3 -m mypy aiopyarr
coverage: ## Check the coverage of the package
@python3 -m pytest tests --asyncio-mode=strict --cov=aiopyarr --cov-report term-missing -vv
setup: ## Setup the package
@python3 setup.py develop
|