mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +00:00
04e586f90a
let's avoid getting new versions of those packages by accident. Unfortunately this means we have to manually update those packages regurarly. Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
36 lines
804 B
INI
36 lines
804 B
INI
[tox]
|
|
envlist = flake8, mypy, pytest
|
|
skipsdist = True
|
|
|
|
[testenv:flake8]
|
|
basepython = python3
|
|
deps=
|
|
flake8
|
|
commands=flake8 --select=F,E9 --exclude=venv,.tox
|
|
|
|
[testenv:mypy]
|
|
basepython = python3
|
|
deps =
|
|
mypy
|
|
types-boto
|
|
types-requests
|
|
types-jwt
|
|
types-paramiko
|
|
types-PyYAML
|
|
types-cryptography
|
|
types-python-dateutil
|
|
-c{toxinidir}/../src/mypy-constrains.txt
|
|
commands = mypy {posargs:.}
|
|
|
|
[testenv:import-tasks]
|
|
basepython = python3
|
|
deps = {env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@master}#egg=teuthology[coverage,orchestra,test]
|
|
commands = python test_import.py {posargs:tasks/**/*.py}
|
|
|
|
[testenv:pytest]
|
|
basepython = python3
|
|
deps =
|
|
{env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@master}#egg=teuthology[test]
|
|
httplib2
|
|
commands = pytest -vv tasks/tests
|