ceph/qa/tox.ini
Thomas Bechtold 46e22c422b qa: Enable basic mypy support for qa/ directory
A first step to do more automatic code checks on the qa/
directory. This is useful while transitioning to python3.

Also use log_exc to top-level to not run into:

error: Argument 1 to "log_exc" has incompatible type
  "Callable[[OSDThrasher], Any]"; expected "OSDThrasher"

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2020-03-05 06:54:56 +01:00

21 lines
355 B
INI

[tox]
envlist = flake8-py2, flake8-py3, mypy
skipsdist = True
[testenv:flake8-py2]
basepython = python2
deps=
flake8
commands=flake8 --select=F,E9 --exclude=venv,.tox
[testenv:flake8-py3]
basepython = python3
deps=
flake8
commands=flake8 --select=F,E9 --exclude=venv,.tox
[testenv:mypy]
basepython = python3
deps = mypy
commands = mypy {posargs:.}