diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-09 17:08:52 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-09 17:08:52 +0100 |
commit | 7ae5754b6d5f4f5ce4c4894a9d0f7247731e4d29 (patch) | |
tree | 4d551ffc1d3e175c528c69f06e22a9ac2ac41854 /qa/tox.ini | |
parent | Initial commit. (diff) | |
download | ceph-19-7ae5754b6d5f4f5ce4c4894a9d0f7247731e4d29.tar.xz ceph-19-7ae5754b6d5f4f5ce4c4894a9d0f7247731e4d29.zip |
Adding upstream version 19.2.0.upstream/19.2.0upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'qa/tox.ini')
-rw-r--r-- | qa/tox.ini | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/qa/tox.ini b/qa/tox.ini new file mode 100644 index 000000000..af4c69991 --- /dev/null +++ b/qa/tox.ini @@ -0,0 +1,47 @@ +[tox] +envlist = flake8, mypy, pytest, deadsymlinks +skipsdist = True + +[testenv] +setenv = + LC_ALL = C.UTF-8 + LANG = C + +[testenv:flake8] +basepython = python3 +deps= + flake8 +commands=flake8 --select=F,E9 --exclude=venv,.tox + +[testenv:mypy] +basepython = python3 +deps = + mypy + types-boto + types-redis + types-requests + types-jwt + types-paramiko + types-PyYAML + types-cryptography + types-python-dateutil + -c{toxinidir}/../src/mypy-constrains.txt +commands = mypy --no-namespace-packages {posargs:.} + +[testenv:py3] +basepython = python3 +deps = + {env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@main}#egg=teuthology[coverage,orchestra,test] + httplib2 + pytest +commands = + pytest --assert=plain test_import.py + pytest tasks/tests --suite-dir {toxinidir}/suites {posargs} + +[testenv:deadsymlinks] +basepython = python3 +toxworkdir = {toxinidir} +allowlist_externals = + bash +commands = + bash -c '! (find . -xtype l | grep ^)' |