Debian Codegraph @

Makefile

raw
1 # Some simple testing tasks (sorry, UNIX only).
2
3 setup:
4 pip install -r requirements-dev.txt
5 pre-commit install
6
7 .PHONY: fmt
8 fmt:
9 python -m pre_commit run --all-files --show-diff-on-failure
10
11 .PHONY: lint
12 lint: fmt
13 mypy
14
15 test:
16 pytest -sv tests/
17
18 cov cover coverage:
19 pytest -sv tests/ --cov=aiohttp_sse --cov-report=html
20 @echo "open file://`pwd`/htmlcov/index.html"
21
22 clean:
23 rm -rf `find . -name __pycache__`
24 rm -f `find . -type f -name '*.py[co]' `
25 rm -f `find . -type f -name '*~' `
26 rm -f `find . -type f -name '.*~' `
27 rm -f `find . -type f -name '@*' `
28 rm -f `find . -type f -name '#*#' `
29 rm -f `find . -type f -name '*.orig' `
30 rm -f `find . -type f -name '*.rej' `
31 rm -f .coverage
32 rm -rf coverage
33 rm -rf build
34 rm -rf cover
35 rm -rf htmlcov
36
37 doc:
38 make -C docs html
39 @echo "open file://`pwd`/docs/_build/html/index.html"
40
41 .PHONY: all build venv flake test vtest testloop cov clean doc