-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
51 lines (43 loc) · 1.3 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
[tox]
envlist =py,
pylint,
pip-compile,
docs-{dirhtml,spelling}
[base3]
deps =
mock
pytest
pytest-console-scripts
pytest-cov
pytest-flake8
pytest-mock
requests-mock
[testenv]
commands = pytest -v --basetemp={envtmpdir} --flake8 {posargs: tests fellowship} \
--cov-config {toxinidir}/.coveragerc \
--cov-branch \
--cov={toxinidir}/tests \
--cov={envsitepackagesdir}/fellowship \
--cov-report html
deps = {[base3]deps}
install_command = pip install --no-cache-dir {opts} {packages}
[testenv:pylint]
deps =
pylint
{[base3]deps}
commands = pylint {posargs: --rcfile={toxinidir}/.pylintrc \
{toxinidir}/tests \
{toxinidir}/fellowship }
[testenv:pip-compile]
deps=
pip-tools
commands=
pip-compile --output-file=docs/requirements.txt docs/requirements.in
[testenv:docs-dirhtml]
commands = python -m sphinx -b dirhtml {toxinidir}/docs/ {envtmpdir}/build {posargs:-a -n -q -T -W}
deps =
-r{toxinidir}/docs/requirements.txt
[testenv:docs-spelling]
commands = python -m sphinx -b spelling {toxinidir}/docs/ {envtmpdir}/build {posargs:-a -n -T -W}
deps =
-r{toxinidir}/docs/requirements.txt