diff options
Diffstat (limited to 'src/python-common/tox.ini')
-rw-r--r-- | src/python-common/tox.ini | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/python-common/tox.ini b/src/python-common/tox.ini new file mode 100644 index 000000000..5869b6ae2 --- /dev/null +++ b/src/python-common/tox.ini @@ -0,0 +1,27 @@ +[tox] +envlist = py3, lint +skip_missing_interpreters = true + +[testenv:py3] +deps= + -rrequirements.txt +commands= + pytest --doctest-modules ceph/deployment/service_spec.py ceph/utils.py + pytest {posargs} + mypy --config-file=../mypy.ini -p ceph + +[tool:pytest] +norecursedirs = .* _* virtualenv + +[flake8] +max-line-length = 100 +exclude = + __pycache__ + +[testenv:lint] +deps = + -rrequirements-lint.txt +commands = + flake8 {posargs:ceph} + rstcheck --report info --debug README.rst + |