* Use Python 3.7 as preferred Python 3 interpreter * Do not test pytest `master` and `features` branches on Python 2.7, as those branches no longer support Python 2.7/3.4
43 lines
802 B
INI
43 lines
802 B
INI
[tox]
|
|
envlist=
|
|
linting
|
|
py{27,34,35,36,37}-pytestlatest
|
|
py37-pytest{master,features}
|
|
|
|
[testenv]
|
|
passenv = USER USERNAME
|
|
deps =
|
|
pytestlatest: pytest
|
|
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
|
|
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
|
|
filelock
|
|
commands=
|
|
pytest {posargs}
|
|
|
|
[testenv:linting]
|
|
skipsdist = True
|
|
usedevelop = True
|
|
deps =
|
|
pre-commit
|
|
commands = pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:release]
|
|
changedir=
|
|
decription = do a release, required posarg of the version number
|
|
basepython = python3.7
|
|
skipsdist = True
|
|
usedevelop = True
|
|
passenv = *
|
|
deps =
|
|
towncrier
|
|
commands =
|
|
towncrier --version {posargs} --yes
|
|
|
|
[pytest]
|
|
addopts = -ra
|
|
testpaths = testing
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
ignore = E203,W503
|