black/tox.ini

29 lines
714 B
INI

[tox]
envlist = py{36,37,38,39},fuzz
[testenv]
setenv = PYTHONPATH = {toxinidir}/src
skip_install = True
deps =
-r{toxinidir}/test_requirements.txt
commands =
pip install -e .[d]
coverage erase
coverage run -m pytest tests --run-optional=no_python2 {posargs}
pip install -e .[d,python2]
coverage run -m pytest tests --run-optional=python2 {posargs}
coverage report
[testenv:fuzz]
skip_install = True
deps =
-r{toxinidir}/test_requirements.txt
hypothesmith
lark-parser < 0.10.0
; lark-parser's version is set due to a bug in hypothesis. Once it solved, that would be fixed.
commands =
pip install -e .[d]
coverage erase
coverage run fuzz.py
coverage report