forked from python-hyper/wsproto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
66 lines (58 loc) · 1.37 KB
/
tox.ini
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tox]
envlist = py36, py37, py38, pypy, format, mypy, lint, packaging, docs
[testenv]
deps =
pytest==5.2.2
pytest-cov==2.8.1
{env:CI_DEPS:}
{env:EXTRA_DEPS:}
passenv = CODECOV_TOKEN CI CI_* TRAVIS TRAVIS_*
commands =
pytest --cov=wsproto {posargs}
{env:CI_COMMANDS:python -c ""}
[testenv:pypy]
# temporarily disable coverage testing on PyPy due to performance problems
commands = pytest {posargs}
[testenv:autobahn]
deps =
{env:EXTRA_DEPS:}
changedir = {toxinidir}/compliance
commands =
python run-autobahn-tests.py {env:SIDE:}
[testenv:format]
basepython = python3.8
deps =
black
isort
commands =
black --check --diff src/wsproto/ test/ example/ compliance/
isort --dont-skip __init__.py --diff --check --settings-path setup.cfg --recursive src/wsproto test example compliance
[testenv:mypy]
basepython = python3.8
deps = mypy
commands =
mypy src/wsproto/ test/ example/
[testenv:lint]
basepython = python3.8
deps =
prospector
commands = prospector
[testenv:docs]
basepython = python3.8
deps = sphinx==2.2.1
whitelist_externals = make
changedir = {toxinidir}/docs
commands =
make clean
make html
[testenv:packaging]
basepython=python3.8
deps =
check-manifest==0.40
readme-renderer==24.0
twine==2.0.0
commands =
check-manifest
python setup.py check --metadata --strict
python setup.py sdist
twine check dist/*