setools/tox.ini

41 lines
1.2 KiB
INI
Raw Normal View History

[tox]
minversion = 1.4
2017-09-16 18:19:32 +00:00
envlist = py34, py35, py36
[pep8]
exclude = qpol.py
max-line-length = 100
[testenv:pep8]
deps = pep8
2018-01-07 16:08:42 +00:00
cython>=0.27
commands = pep8 --version
pep8 setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff --statistics
[testenv:coverage]
setenv = SETOOLS_COVERAGE = 1
deps = networkx==2.0
coverage>=4.0
2017-12-20 16:30:32 +00:00
cython>=0.27
commands = coverage --version
coverage erase
coverage run setup.py test -q
coverage report
2015-04-06 13:38:58 +00:00
[testenv:lint]
deps = pylint
networkx==2.0
2017-12-20 16:30:32 +00:00
cython>=0.27
commands = {envpython} setup.py build_ext -i
pylint --version
pylint -E --rcfile .pylintrc setools tests seinfo seinfoflow sedta sesearch sediff
2015-06-03 17:33:11 +00:00
# pylint can't see all members introduced by PyQt uic
2015-12-01 14:38:08 +00:00
pylint -E --rcfile .pylintrc --disable=no-member,import-error setoolsgui
[testenv]
passenv = USERSPACE_SRC
deps = networkx==2.0
2017-12-20 16:30:32 +00:00
cython>=0.27
commands = {envpython} setup.py test
recreate = True