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
|
|
|
|
|
2022-12-08 06:42:42 +00:00
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
LC_ALL = C.UTF-8
|
|
|
|
LANG = C
|
|
|
|
|
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
|
2023-03-23 16:46:05 +00:00
|
|
|
types-redis
|
2021-06-09 10:53:21 +00:00
|
|
|
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 =
|
2022-06-02 10:27:02 +00:00
|
|
|
{env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@main}#egg=teuthology[coverage,orchestra,test]
|
2020-05-25 16:13:50 +00:00
|
|
|
httplib2
|
2022-12-08 14:34:38 +00:00
|
|
|
pytest
|
2021-06-20 09:45:52 +00:00
|
|
|
commands =
|
|
|
|
pytest --assert=plain test_import.py
|
2021-09-03 16:06:34 +00:00
|
|
|
pytest tasks/tests --suite-dir {toxinidir}/suites {posargs}
|
2021-06-20 09:45:52 +00:00
|
|
|
|
2021-09-03 09:38:04 +00:00
|
|
|
[testenv:deadsymlinks]
|
|
|
|
basepython = python3
|
|
|
|
toxworkdir = {toxinidir}
|
|
|
|
allowlist_externals =
|
|
|
|
bash
|
|
|
|
commands =
|
|
|
|
bash -c '! (find . -xtype l | grep ^)'
|