From 7640f9e49da24f3d8b17aa55011a79ab09fbd851 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 22 Jun 2020 13:55:51 -0700 Subject: makefile: additional targets for lint, fmt --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7a55bd5..f076f2f 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,18 @@ help: ## Print info about all commands dep: ## Create local virtualenv using pipenv pipenv install --dev +.PHONY: lint +lint: ## Run lints (eg, flake8, mypy) + pipenv run flake8 *.py chocula/*.py chocula/*/*.py tests/ --exit-zero + pipenv run mypy *.py chocula/*.py chocula/*/*.py --ignore-missing-imports + +.PHONY: fmt +fmt: ## Run code formating on all source code + pipenv run black *.py chocula/ tests/ + .PHONY: test -test: ## Run all tests and lints +test: lint ## Run all tests and lints pipenv run pytest - pipenv run mypy *.py chocula/*.py chocula/*/*.py --ignore-missing-imports data/container_stats.json: mkdir -p data -- cgit v1.2.3