Recent versions of mypy have learned that the yaml module has type stubs and the tool is now erroring out when it discovers we import yaml since the stubs are not involved. This is breaking CI on unrelated patches; fix it following the instructions here: https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
19 lines
297 B
INI
19 lines
297 B
INI
[tox]
|
|
envlist=py3
|
|
|
|
[testenv]
|
|
deps =
|
|
setuptools-scm
|
|
pytest
|
|
types-PyYAML
|
|
mypy
|
|
setenv =
|
|
TOXTEMPDIR={envtmpdir}
|
|
commands =
|
|
python -m pytest {posargs:tests}
|
|
python -m mypy --config-file={toxinidir}/tox.ini --package=devicetree
|
|
|
|
[mypy]
|
|
mypy_path=src
|
|
ignore_missing_imports=True
|
|
|