2018-03-07 22:54:13 -07:00
|
|
|
[tox]
|
2020-07-10 12:27:43 -06:00
|
|
|
envlist = py{35,36,37,38}
|
2018-10-26 08:26:25 -06:00
|
|
|
minversion=3.4.0
|
|
|
|
skipsdist=True
|
|
|
|
skip_missing_interpreters=True
|
2018-03-07 22:54:13 -07:00
|
|
|
|
2020-07-10 12:27:43 -06:00
|
|
|
[gh-actions]
|
|
|
|
python =
|
|
|
|
3.6: py36
|
|
|
|
3.7: py37
|
|
|
|
3.8: py38,lint
|
|
|
|
|
2018-03-07 22:54:13 -07:00
|
|
|
[testenv]
|
2018-10-26 08:26:25 -06:00
|
|
|
basepython=
|
|
|
|
py36: python3.6
|
2020-07-10 12:27:43 -06:00
|
|
|
py37: python3.7
|
|
|
|
py38: python3.8
|
2018-03-07 22:54:13 -07:00
|
|
|
deps=
|
|
|
|
pytest
|
2018-10-26 08:26:25 -06:00
|
|
|
pytest-cov
|
|
|
|
commands=
|
2018-03-07 22:54:13 -07:00
|
|
|
pip install -e .
|
2018-10-26 08:26:25 -06:00
|
|
|
py.test \
|
|
|
|
--cov-report term \
|
|
|
|
--cov-report html \
|
|
|
|
--cov=bison \
|
|
|
|
{posargs}
|
|
|
|
|
|
|
|
[testenv:deps]
|
|
|
|
deps=
|
|
|
|
pip-tools
|
|
|
|
commands=
|
|
|
|
pip-compile --output-file requirements.txt setup.py
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps=
|
2020-07-10 12:27:43 -06:00
|
|
|
isort>-5.0.0
|
2018-10-26 08:26:25 -06:00
|
|
|
flake8
|
2020-07-10 12:27:43 -06:00
|
|
|
basepython=python3
|
2018-10-26 08:26:25 -06:00
|
|
|
commands=
|
|
|
|
flake8 --ignore=E501,E712 bison
|
2020-07-10 12:27:43 -06:00
|
|
|
isort bison tests --check --diff
|