-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
53 lines (47 loc) · 959 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
45
46
47
48
49
50
51
52
53
[tox]
envlist = py38, py39, py310, pypy3
[testenv]
commands = {envpython} -m pytest {posargs}
deps = -rtest_requirements.txt
usedevelop = True
passenv = HOME
[testenv:docs]
basepython = python3.7
usedevelop = True
commands =
rm -f docs/tri*.rst
sphinx-apidoc -T -o docs/ lib
make -C docs clean
make -C docs html
whitelist_externals =
make
rm
deps =
-rdocs/requirements.txt
[testenv:coverage]
basepython = python3.7
usedevelop = True
commands =
{envpython} -m pytest --cov tri_token {posargs}
coverage report -m
coverage html
deps =
coverage
pytest-cov
-rtest_requirements.txt
[testenv:lint]
basepython = python3.8
usedevelop = True
commands =
{envpython} -m flake8 lib/tri_token tests setup.py {posargs}
deps =
flake8
[testenv:venv]
envdir = venv
usedevelop = True
basepython = python3.7
commands = {posargs:python --version}
deps =
-rvenv_requirements.txt
whitelist_externals =
make