2015-02-26 16:18:44 +00:00
|
|
|
[tox]
|
2021-09-03 09:38:04 +00:00
|
|
|
envlist = flake8, mypy, pytest, deadsymlinks
|
2015-02-26 16:18:44 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
2020-06-19 10:44:57 +00:00
|
|
|
[testenv:flake8]
|
2019-12-09 16:27:46 +00:00
|
|
|
basepython = python3
|
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=flake8 --select=F,E9 --exclude=venv,.tox
|
|
|
|
|
2020-01-09 07:28:22 +00:00
|
|
|
[testenv:mypy]
|
|
|
|
basepython = python3
|
2021-06-09 10:53:21 +00:00
|
|
|
deps =
|
2021-06-15 10:10:36 +00:00
|
|
|
mypy
|
2021-06-09 10:53:21 +00:00
|
|
|
types-boto
|
|
|
|
types-requests
|
|
|
|
types-jwt
|
|
|
|
types-paramiko
|
|
|
|
types-PyYAML
|
|
|
|
types-cryptography
|
|
|
|
types-python-dateutil
|
2021-06-15 10:10:36 +00:00
|
|
|
-c{toxinidir}/../src/mypy-constrains.txt
|
2020-01-09 07:28:22 +00:00
|
|
|
commands = mypy {posargs:.}
|
2020-03-13 11:38:10 +00:00
|
|
|
|
2021-07-02 08:35:11 +00:00
|
|
|
[testenv:py3]
|
2020-05-25 16:13:50 +00:00
|
|
|
basepython = python3
|
|
|
|
deps =
|
2021-06-20 09:45:52 +00:00
|
|
|
{env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@master}#egg=teuthology[coverage,orchestra,test]
|
2020-05-25 16:13:50 +00:00
|
|
|
httplib2
|
2021-06-20 09:45:52 +00:00
|
|
|
commands =
|
|
|
|
pytest --assert=plain test_import.py
|
|
|
|
pytest tasks/tests
|
|
|
|
|
2021-09-03 09:38:04 +00:00
|
|
|
[testenv:deadsymlinks]
|
|
|
|
basepython = python3
|
|
|
|
toxworkdir = {toxinidir}
|
|
|
|
allowlist_externals =
|
|
|
|
bash
|
|
|
|
commands =
|
|
|
|
bash -c '! (find . -xtype l | grep ^)'
|