]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | [tox] |
20effc67 | 2 | envlist = flake8, mypy, pytest, deadsymlinks |
7c673cae FG |
3 | skipsdist = True |
4 | ||
39ae355f TL |
5 | [testenv] |
6 | setenv = | |
7 | LC_ALL = C.UTF-8 | |
8 | LANG = C | |
9 | ||
f67539c2 | 10 | [testenv:flake8] |
9f95a23c TL |
11 | basepython = python3 |
12 | deps= | |
13 | flake8 | |
14 | commands=flake8 --select=F,E9 --exclude=venv,.tox | |
15 | ||
16 | [testenv:mypy] | |
17 | basepython = python3 | |
20effc67 TL |
18 | deps = |
19 | mypy | |
20 | types-boto | |
21 | types-requests | |
22 | types-jwt | |
23 | types-paramiko | |
24 | types-PyYAML | |
25 | types-cryptography | |
26 | types-python-dateutil | |
27 | -c{toxinidir}/../src/mypy-constrains.txt | |
9f95a23c | 28 | commands = mypy {posargs:.} |
e306af50 | 29 | |
20effc67 | 30 | [testenv:py3] |
f67539c2 | 31 | basepython = python3 |
e306af50 | 32 | deps = |
33c7a0ef | 33 | {env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@main}#egg=teuthology[coverage,orchestra,test] |
e306af50 | 34 | httplib2 |
39ae355f | 35 | pytest |
20effc67 TL |
36 | commands = |
37 | pytest --assert=plain test_import.py | |
38 | pytest tasks/tests --suite-dir {toxinidir}/suites {posargs} | |
39 | ||
40 | [testenv:deadsymlinks] | |
41 | basepython = python3 | |
42 | toxworkdir = {toxinidir} | |
43 | allowlist_externals = | |
44 | bash | |
45 | commands = | |
46 | bash -c '! (find . -xtype l | grep ^)' |