-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (38 loc) · 843 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
40
41
42
43
44
[tox]
envlist = py310,static,docs,pidiff
[testenv]
passenv = CIRCLE*,CI*
deps=-rtest-requirements.txt
commands=
pytest --cov-report=html --cov=pidiff -v \
--cov-fail-under=100 \
--junit-xml=test-results/pidiff/junit.xml {posargs}
allowlist_externals=sh
[testenv:static]
commands=
mypy pidiff tests
[testenv:docs]
deps=
sphinx
sphinx-argparse
sphinx-autodoc-typehints
alabaster
allowlist_externals=sh
use_develop=true
commands=
sh -c '\
sphinx-build \
-D version="$(python ./setup.py --version), revision $(git rev-parse --short HEAD)" \
docs docs/_build \
'
[testenv:pidiff]
deps=
commands=
pidiff pidiff .
[testenv:pip-compile]
deps=pip-tools
basepython=python3.10
commands=
pip-compile -U --generate-hashes requirements.txt test-requirements.in -o test-requirements.txt
[flake8]
max-line-length = 100