-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (30 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
[tox]
envlist = py39,pep8
skipsdist = true
toxworkdir = {homedir}/.tox/linkypy/
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests --verbose --detailed-errors --rednose --with-xunit \
--with-coverage --cover-inclusive --cover-package=linkypy \
--cover-html --cover-html-dir=doc/build/coverage
[testenv:profile]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests --verbose --rednose --detailed-errors --with-profile --profile-restrict=linkypy
[testenv:pep8]
commands = flake8
[flake8]
show-source = true
max-line-length = 240
ignore = E722,W291
exclude = .eggs,.git,.tox,dist,doc,build,.venv,.update-venv,tools
max-complexity = 35
[testenv:docs]
whitelist_externals = rm
make
commands = rm -Rf {toxinidir}/doc/source/api
rm -Rf {toxinidir}/doc/build/doctree
rm -Rf {toxinidir}/doc/build/html
rm -Rf {toxinidir}/doc/build/latex
python setup.py build_sphinx -b html