aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files 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