aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-22 13:55:51 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-22 13:55:51 -0700
commit7640f9e49da24f3d8b17aa55011a79ab09fbd851 (patch)
treeb8d4406d753096ebabe56bd7b228d08844467729 /Makefile
parentb1b518e2acd819034e27d3a4b47918a91c1199b8 (diff)
downloadchocula-7640f9e49da24f3d8b17aa55011a79ab09fbd851.tar.gz
chocula-7640f9e49da24f3d8b17aa55011a79ab09fbd851.zip
makefile: additional targets for lint, fmt
Diffstat (limited to 'Makefile')
-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