-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (29 loc) · 871 Bytes
/
Makefile
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
37
38
39
40
41
42
43
44
45
all: test
.install-deps: $(shell find requirements -type f)
pip install -U -r requirements/dev.txt
pre-commit install
@touch .install-deps
.develop: .install-deps $(shell find src/aiohttp_asyncmdnsresolver -type f)
@pip install -e .
@touch .develop
fmt:
ifdef CI
pre-commit run --all-files --show-diff-on-failure
else
pre-commit run --all-files
endif
lint: fmt
test: lint .develop
pytest
vtest: lint .develop
pytest -v
cov: lint .develop
pytest --cov-report html --cov-report term
@echo "python3 -Im webbrowser file://`pwd`/htmlcov/index.html"
doc: doctest doc-spelling
make -C docs html SPHINXOPTS="-W -E --keep-going -n"
@echo "python3 -Im webbrowser file://`pwd`/docs/_build/html/index.html"
doctest: .develop
make -C docs doctest SPHINXOPTS="-W -E --keep-going -n"
doc-spelling:
make -C docs spelling SPHINXOPTS="-W -E --keep-going -n"