From 04f8b5b85c628f8efc422b0cdf52d6522f6a3898 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 6 Dec 2023 15:09:44 +0000 Subject: [PATCH] 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 --- src/cephadm/tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 67ed18c97249a..38241a1c763bc 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} -- 2.39.5