2015-02-26 16:18:44 +00:00
|
|
|
[tox]
|
2020-05-25 16:13:50 +00:00
|
|
|
envlist = flake8-py2, flake8-py3, mypy, pytest
|
2015-02-26 16:18:44 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
2019-12-09 16:27:46 +00:00
|
|
|
[testenv:flake8-py2]
|
|
|
|
basepython = python2
|
2015-02-26 16:18:44 +00:00
|
|
|
deps=
|
|
|
|
flake8
|
2016-07-28 21:44:46 +00:00
|
|
|
commands=flake8 --select=F,E9 --exclude=venv,.tox
|
2019-12-09 16:27:46 +00:00
|
|
|
|
|
|
|
[testenv:flake8-py3]
|
|
|
|
basepython = python3
|
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=flake8 --select=F,E9 --exclude=venv,.tox
|
|
|
|
|
2020-01-09 07:28:22 +00:00
|
|
|
[testenv:mypy]
|
|
|
|
basepython = python3
|
2020-03-12 15:27:45 +00:00
|
|
|
deps = mypy==0.770
|
2020-01-09 07:28:22 +00:00
|
|
|
commands = mypy {posargs:.}
|
2020-03-13 11:38:10 +00:00
|
|
|
|
|
|
|
[testenv:import-tasks]
|
|
|
|
basepython = python3
|
|
|
|
deps = {env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@master}#egg=teuthology[coverage,orchestra,test]
|
|
|
|
commands = python test_import.py {posargs:tasks/**/*.py}
|
2020-05-25 16:13:50 +00:00
|
|
|
|
|
|
|
[testenv:pytest]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
{env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@master}#egg=teuthology[test]
|
|
|
|
httplib2
|
|
|
|
commands = pytest -vv tasks/tests
|