From: Guillaume Abrioux Date: Wed, 6 Dec 2023 15:09:44 +0000 (+0000) Subject: cephadm: add `types-PyYAML` dependency in mypy testing X-Git-Tag: v19.3.0~102^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=04f8b5b85c628f8efc422b0cdf52d6522f6a3898;p=ceph.git cephadm: add `types-PyYAML` dependency in mypy testing In order to address the following error: ``` cephadmlib/node_proxy/util.py:2: error: Library stubs not installed for "yaml" (or incompatible with Python 3.9) cephadmlib/node_proxy/util.py:2: note: Hint: "python3 -m pip install types-PyYAML" cephadmlib/node_proxy/util.py:2: note: (or run "mypy --install-types" to install all missing stub packages) cephadmlib/node_proxy/util.py:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports ``` Signed-off-by: Guillaume Abrioux --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 67ed18c9724..38241a1c763 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -44,6 +44,7 @@ commands=pytest {posargs} basepython = python3 deps = mypy + types-PyYAML -rzipapp-reqs.txt -c{toxinidir}/../mypy-constrains.txt commands = mypy --config-file ../mypy.ini {posargs:cephadm.py cephadmlib}