diff options
Diffstat (limited to 'python/Makefile')
-rw-r--r-- | python/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/python/Makefile b/python/Makefile index 43ec144..940a7eb 100644 --- a/python/Makefile +++ b/python/Makefile @@ -14,23 +14,19 @@ deps: ## Install dependencies using pipenv .PHONY: lint lint: ## Run lints (eg, flake8, mypy) - #pipenv run flake8 . --exit-zero - pipenv run flake8 . --select=E9,F63,F7,F82 --exit-zero + pipenv run flake8 . --exit-zero + pipenv run isort -q -c . || true pipenv run mypy *.py sandcrawler/ tests/ --ignore-missing-imports - #pipenv run pytype sandcrawler/ .PHONY: fmt fmt: ## Run code formating on all source code - pipenv run black *.py sandcrawler/ tests/ + pipenv run isort --atomic . + pipenv run black --line-length 96 sandcrawler/ tests/ scripts/ *.py .PHONY: test -test: lint ## Run all tests and lints +test: ## Run all tests and lints pipenv run pytest .PHONY: coverage coverage: ## Run all tests with coverage - pipenv run pytest --cov - -.PHONY: coverage-html -coverage-html: ## Run all tests with coverage, HTML report output - pipenv run pytest --cov --cov-report html + pipenv run pytest --cov --cov-report=term --cov-report=html |