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.
23 lines
466 B
23 lines
466 B
3 years ago
|
.DEFAULT_GOAL := help
|
||
|
.PHONY: coverage deps help lint push test
|
||
|
|
||
|
coverage: ## Run tests with coverage
|
||
|
coverage erase
|
||
|
coverage run --include=warren/* -m pytest -ra
|
||
|
coverage report -m
|
||
|
|
||
|
deps: ## Install dependencies
|
||
|
pip install black coverage flake8 mccabe mypy pylint pytest tox
|
||
|
|
||
|
lint: ## Lint and static-check
|
||
|
black warren
|
||
|
flake8 warren
|
||
|
pylint warren
|
||
|
mypy warren
|
||
|
|
||
|
push: ## Push code with tags
|
||
|
git push && git push --tags
|
||
|
|
||
|
test: ## Run tests
|
||
|
pytest -ra
|