diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-22 13:55:51 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-22 13:55:51 -0700 |
commit | 7640f9e49da24f3d8b17aa55011a79ab09fbd851 (patch) | |
tree | b8d4406d753096ebabe56bd7b228d08844467729 /Makefile | |
parent | b1b518e2acd819034e27d3a4b47918a91c1199b8 (diff) | |
download | chocula-7640f9e49da24f3d8b17aa55011a79ab09fbd851.tar.gz chocula-7640f9e49da24f3d8b17aa55011a79ab09fbd851.zip |
makefile: additional targets for lint, fmt
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |