From f65677bca1ea5cead274a876ce94790b0b64b20b Mon Sep 17 00:00:00 2001 From: josiah Date: Thu, 29 Apr 2021 18:26:16 -0500 Subject: [PATCH] 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? --- Makefile | 22 ++++++++++++++++++++++ tox.ini | 21 --------------------- 2 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 Makefile delete mode 100644 tox.ini diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0a0feba --- /dev/null +++ b/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 diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 0981c97..0000000 --- a/tox.ini +++ /dev/null @@ -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