-
Notifications
You must be signed in to change notification settings - Fork 182
/
Makefile
48 lines (37 loc) · 875 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
46
47
48
.PHONY: clean tests docs
SRC_PYTHON := gql tests docs/code_examples
dev-setup:
python -m pip install -e ".[test]"
tests:
pytest tests --cov=gql --cov-report=term-missing -vv
all_tests:
pytest tests --cov=gql --cov-report=term-missing --run-online -vv
tests_aiohttp:
pytest tests --aiohttp-only
tests_requests:
pytest tests --requests-only
tests_httpx:
pytest tests --httpx-only
tests_websockets:
pytest tests --websockets-only
check:
isort --recursive $(SRC_PYTHON)
black $(SRC_PYTHON)
flake8 $(SRC_PYTHON)
mypy $(SRC_PYTHON)
check-manifest
docs:
rm -rf ./docs/_build
cd docs; make html
clean:
find . -name "*.pyc" -delete
find . -name "__pycache__" | xargs -I {} rm -rf {}
rm -rf ./htmlcov
rm -rf ./.mypy_cache
rm -rf ./.pytest_cache
rm -rf ./.tox
rm -rf ./gql.egg-info
rm -rf ./dist
rm -rf ./build
rm -rf ./docs/_build
rm -f ./.coverage