summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1eb93a5..7d5229a 100644
--- a/Makefile
+++ b/Makefile
@@ -20,14 +20,17 @@ lint: ## Run lints (eg, flake8, mypy)
.PHONY: fmt
fmt: ## Run code formating on all source code
- pipenv run isort --atomic grobid_tei_xml/*
- pipenv run yapf -p -i -r grobid_tei_xml/*
- pipenv run yapf -p -i -r tests
+ pipenv run isort --atomic grobid_tei_xml/*.py
+ pipenv run yapf -p -i -r grobid_tei_xml tests
.PHONY: test
test: ## Run all tests and lints
- pipenv run python -m pytest
+ pipenv run python -m pytest -vv
+
+.PHONY: test-readme
+test-readme: ## Test codeblocks in the README (includes live web requests)
+ pipenv run python -m pytest --codeblocks
.PHONY: coverage
coverage: ## Run all tests with coverage
- pipenv run pytest --cov --cov-report=term --cov-report=html
+ pipenv run python -m pytest --cov --cov-report=term --cov-report=html