diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 12:08:02 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 12:08:02 +0200 |
commit | 2177626c6984aec8dbffc3e776b048c2f5d16e44 (patch) | |
tree | 3b1dfa571ea122c94e08dbff01119443a6bc6a78 /Makefile | |
parent | ecb1c789d25b8665255f3ed932f30530f1219346 (diff) | |
download | fuzzycat-2177626c6984aec8dbffc3e776b048c2f5d16e44.tar.gz fuzzycat-2177626c6984aec8dbffc3e776b048c2f5d16e44.zip |
add coverage dependency
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,17 +1,18 @@ SHELL := /bin/bash -.PHONY: deps -deps: ## Install dependencies from setup.py into pipenv - # We need to use --pre, because e.g. black is considered a pre-release - # version, https://github.com/microsoft/vscode-python/issues/5171 - pipenv install --pre '-e .[dev]' - .PHONY: help help: ## Print info about all commands @echo "Commands:" @echo @grep -E '^[/.a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-40s\033[0m %s\n", $$1, $$2}' + +.PHONY: deps +deps: ## Install dependencies from setup.py into pipenv + # We need to use --pre, because e.g. black is considered a pre-release + # version, https://github.com/microsoft/vscode-python/issues/5171 + pipenv install --pre '-e .[dev]' + data/release_export_expanded.json.gz: ## Download release export mkdir -p data wget -c https://archive.org/download/fatcat_bulk_exports_2020-08-05/release_export_expanded.json.gz -O $@ @@ -26,6 +27,10 @@ style: ## Apply import sorting and black source formatting on all files dist: ## Create source distribution and wheel python setup.py sdist bdist_wheel +.PHONY: cov +cov: ## Run coverage report + <pytest --cov=fuzzycat tests/ + .PHONY: clean clean: ## Clean all artifacts rm -rf build |