]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add `types-PyYAML` dependency in mypy testing
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 6 Dec 2023 15:09:44 +0000 (15:09 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 16:01:04 +0000 (16:01 +0000)
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 <gabrioux@ibm.com>
(cherry picked from commit 47e7d3ddac1fd61b57149e5e4305bb9e819ae52e)

src/cephadm/tox.ini

index 2cbfca70f0ed43c68c6b27d0eff6576310fddd1c..f20c2255e919e3ccdefd88c2fad4449dac01c5bf 100644 (file)
@@ -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}