Make is more generalist and I can use it to extend shit later. I don't exacccctly get the point of tox when make is right there?master
parent
71c2c973e0
commit
f65677bca1
@ -0,0 +1,22 @@
|
||||
.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
|
@ -1,21 +0,0 @@
|
||||
[tox]
|
||||
isolated_build = True
|
||||
envlist = py37,py38,py39
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
black
|
||||
coverage
|
||||
flake8
|
||||
mccabe
|
||||
mypy
|
||||
pylint
|
||||
pytest
|
||||
commands =
|
||||
black warren
|
||||
flake8 warren
|
||||
pylint warren
|
||||
mypy warren
|
||||
coverage erase
|
||||
coverage run --include=warren/* -m pytest -ra
|
||||
coverage report -m
|
Reference in new issue