Skip to content
Snippets Groups Projects
Commit 5ed223c1884a authored by Ilya Etingof's avatar Ilya Etingof
Browse files

Add tox.ini with some basic runners

parent b1077eff2596
No related branches found
No related tags found
No related merge requests found
skips:
- B603 # Ignore warnings about calling subprocess.Popen without shell=True
- B607 # Ignore warnings about calling subprocess.Popen without a full path to executable
tox.ini 0 → 100644
[tox]
minversion = 3.5.0
envlist = unittest, docs, bandit, build
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
install_command = pip install {opts} {packages}
[testenv:unittest]
deps =
discover
-r{toxinidir}/devel-requirements.txt
-r{toxinidir}/requirements.txt
commands = discover -s tests
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --parallel-mode
deps =
coverage
discover
commands = coverage erase
coverage run --source pyasn1 -m unittest discover {posargs}
coverage report --fail-under 80
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r pyasn1 -c .bandit.yml
[testenv:docs]
commands = make -C docs html
[testenv:build]
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment