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