You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
822 B

_python_pkg = novinky_polls
.PHONY: setup setup-dev install test lint tox reformat help
setup: ## Create Pipenv virtual environment and install dependencies.
pipenv --three --site-packages
pipenv install
setup-dev: ## Install development dependencies
pipenv install --dev
install: ## Install as Pip package
pip install --user --upgrade .
test: ## Run unit tests
pipenv run python -m unittest
lint: ## Run linting
pipenv run flake8 $(_python_pkg)
pipenv run mypy $(_python_pkg) --ignore-missing-imports
pipenv run isort -c $(_python_pkg)
tox: ## Run tox
tox
reformat: ## Reformat Python code using Black
black -l 79 --skip-string-normalization $(_python_pkg)
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'