Browse Source

Move away from tox to make.

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
josiah 1 year ago
parent
commit
f65677bca1
  1. 22
      Makefile
  2. 21
      tox.ini

22
Makefile

@ -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

21
tox.ini

@ -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