diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..81d8eef --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +VENV = . .venv/bin/activate + +.venv: requirements-dev.txt + test -d .venv || python -m virtualenv .venv + $(VENV); pip install -Ur requirements-dev.txt + +.PHONY: test +test: .venv + $(VENV); pytest + +.PHONY: lint +lint: .venv + $(VENV); black . + $(VENV); flake8 . + $(VENV); isort . + +.PHONY: clean +clean: + @rm -rf .venv + @find -iname "*.pyc" -delete + +.PHONY: all +all: lint test