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: v18.2.4~314^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6fc4961b837101245a815be4e34e30bdc32b2df4;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 (cherry picked from commit 47e7d3ddac1fd61b57149e5e4305bb9e819ae52e) --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 2cbfca70f0ed..f20c2255e919 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -43,6 +43,7 @@ commands=pytest {posargs} basepython = python3 deps = mypy + types-PyYAML -c{toxinidir}/../mypy-constrains.txt commands = mypy --config-file ../mypy.ini {posargs:cephadm.py}