mirror of
https://github.com/ceph/ceph
synced 2024-12-24 04:14:07 +00:00
46e22c422b
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>
21 lines
355 B
INI
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:.}
|