forked from zytedata/zyte-common-items
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (35 loc) · 938 Bytes
/
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
[tox]
envlist = py37,py38,py39,py310,mypy,docs
[testenv]
deps =
pytest
pytest-asyncio
pytest-cov
# https://github.com/davidfritzsche/pytest-mypy-testing/issues/35
git+https://github.com/davidfritzsche/pytest-mypy-testing.git@031514ff6ecd5bdf4d11ff238c14d4801b5e47f3
mypy==0.971
setenv =
PY_IGNORE_IMPORTMISMATCH=1
commands =
py.test \
--cov-report=term-missing:skip-covered \
--cov-report=html \
--cov-report= \
--cov-report=xml \
--cov=zyte_common_items \
--doctest-glob="*.rst" --doctest-modules \
{posargs:docs tests zyte_common_items}
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
setenv =
READTHEDOCS_PROJECT=zyte-common-items
READTHEDOCS_VERSION=main
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:mypy]
basepython = python3.10
deps =
mypy==0.971
commands = mypy zyte_common_items tests