436616c66b
This is essentially a revert of PR #46311 "python-devicetree: CI hotfix",
assuming the original issue has been resolved, either upstream in
types-PyYAML or in Zephyr itself.
Tested with types-PyYAML 6.0.12.2 (current version at PyPI):
$ python -m mypy --config-file=tox.ini --package=devicetree
dtlib.py:962: note: By default the bodies of untyped functions [...]
dtlib.py:964: note: By default the bodies of untyped functions [...]
dtlib.py:965: note: By default the bodies of untyped functions [...]
dtlib.py:967: note: By default the bodies of untyped functions [...]
Success: no issues found in 4 source files
The "notes" above are harmless (use of type hinting to define local
variables while mypy won't "check the bodies of untyped functions").
References:
- python-devicetree tox run fails (issue #46286)
- python-devicetree: CI hotfix (PR #46311)
- python-devicetree: CI hotfix (commit f6a6843
)
Signed-off-by: Chris Duf <chris@openmarl.org>
20 lines
297 B
INI
20 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
|
|
|