setools/tox.ini

64 lines
1.9 KiB
INI
Raw Normal View History

[tox]
minversion = 2.4
envlist = python3, pep8, lint, mypy
[pycodestyle]
max-line-length = 100
[testenv:pep8]
deps = {[testenv]deps}
pycodestyle
commands_pre = pycodestyle --version
commands = pycodestyle setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff sechecker apol --statistics
[testenv:coverage]
setenv = SETOOLS_COVERAGE = 1
deps = {[testenv]deps}
coverage>=5.0
extras = toml
commands_pre = coverage --version
coverage erase
{envpython} setup.py build_ext -i
commands = coverage run -m pytest tests
coverage report
2015-04-06 13:38:58 +00:00
[testenv:lint]
deps = {[testenv]deps}
pylint>=2.8.0
PyQt5>=5.15.0
commands_pre = pylint --version
{envpython} setup.py build_ext -i
commands = pylint -E setools setoolsgui tests seinfo seinfoflow sedta sesearch sediff sechecker apol
[testenv:mypy]
deps = {[testenv]deps}
types-setuptools
PyQt5>=5.15.0
mypy
commands_pre = mypy --version
commands = mypy -p setools
mypy -p setoolsgui
mypy seinfo
mypy seinfoflow
mypy sedta
mypy sesearch
mypy sediff
mypy sechecker
mypy apol
[testenv:install]
deps = {[testenv]deps}
commands = {envpython} -m pip install --use-pep517 .
[testenv]
passenv = USERSPACE_SRC
deps = networkx>=2.0
cython>=0.29.14
pytest>=6.0
python3.6: dataclasses
python3.9: networkx>=2.6
python3.10: networkx>=2.6
python3.11: networkx>=2.6
commands_pre = {envpython} setup.py build_ext -i
commands = pytest tests