Skip to content

qapi: static typing conversion, pt5b

John Snow qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6qapi/parser.py: remove unused check_args_section argumentsscripts/qapi/parser.py+3 -31 reply
2/6qapi/parser: Allow empty QAPIDoc Sectionsscripts/qapi/parser.py+4 -16 replies
3/6qapi/parser.py: add type hint annotations (QAPIDoc)scripts/qapi/parser.py+45 -293 replies
4/6qapi/parser.py: enable mypy checksscripts/qapi/mypy.ini+0 -50 replies
5/6qapi/parser.py: Silence too-few-public-methods warningscripts/qapi/parser.py+2 -00 replies
6/6qapi/parser.py: enable pylint checksscripts/qapi/pylintrc+1 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] qapi: static typing conversion, pt5b

This is part five (b), and focuses on QAPIDoc in parser.py.

gitlab: https://gitlab.com/jsnow/qemu/-/commits/python-qapi-cleanup-pt5b

Requirements:
- Python 3.6+
- mypy >= 0.770
- pylint >= 2.6.0 (2.7.0+ when using Python 3.9+)

Every commit should pass with:
- isort -c qapi/
- flake8 qapi/
- pylint --rcfile=qapi/pylintrc qapi/
- mypy --config-file=qapi/mypy.ini qapi/

John Snow (6):
qapi/parser.py: remove unused check_args_section arguments qapi/parser: Allow empty QAPIDoc Sections qapi/parser.py: add type hint annotations (QAPIDoc) qapi/parser.py: enable mypy checks qapi/parser.py: Silence too-few-public-methods warning qapi/parser.py: enable pylint checks

 scripts/qapi/mypy.ini  |  5 ---
 scripts/qapi/parser.py | 85 ++++++++++++++++++++++++++----------------
 scripts/qapi/pylintrc  |  3 +-
 3 files changed, 54 insertions(+), 39 deletions(-)
Signature · 1 line
2.30.2