-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
36 lines (32 loc) · 814 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
[tox]
envlist = py38, py39, py310, style, coverage
requires = tox-conda
isolated_build = True
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-tests.txt
commands =
pytest --basetemp={envtmpdir}
[testenv:coverage]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-tests.txt
commands =
coverage run --source pathcensus -m pytest
coverage report --omit=pathcensus/core/*.py
[testenv:style]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-tests.txt
commands =
pytest --pylint -m pylint
# [testenv:docs]
# changedir=docs/
# deps =
# -r{toxinidir}/requirements-docs.txt
# commands =
# sphinx-build -b linkcheck ./ _build/
# sphinx-build -b html ./ _build/