1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
.PHONY: all
all: test
.install-deps: $(shell find requirements -type f)
@pip install -r requirements/dev.txt
@pre-commit install
@touch .install-deps
.develop: .install-deps $(shell find aiojobs -type f)
@pip install -e .
@touch .develop
.PHONY: setup
setup: .develop
.PHONY: lint
lint:
pre-commit run --all-files
mypy
.PHONY: test
test: .develop
@pytest tests
.PHONY: cov
cov: .develop
@PYTHONASYNCIODEBUG=1 pytest --cov=aiojobs tests
@pytest --cov=aiojobs --cov-append --cov-report=html --cov-report=term tests
@echo "open file://`pwd`/htmlcov/index.html"
.PHONY: doc
doc: .develop
@make -C docs html SPHINXOPTS="-W -E"
@echo "open file://`pwd`/docs/_build/html/index.html"
|