From: John Snow Date: Fri, 9 Oct 2020 17:51:21 +0000 (-0400) Subject: python: add mypy config X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c3a404d3be115f2429a6608a1bbd74623db294bb;p=qemu.git python: add mypy config Formalize the options used for checking the python library. You can run mypy from the directory that mypy.ini is in by typing `mypy qemu/`. Signed-off-by: John Snow Message-id: 20201009175123.249009-2-jsnow@redhat.com [Edit: Added newline; thanks Bin Meng --js] Signed-off-by: John Snow --- diff --git a/python/mypy.ini b/python/mypy.ini new file mode 100644 index 0000000000..1a581c5f1e --- /dev/null +++ b/python/mypy.ini @@ -0,0 +1,4 @@ +[mypy] +strict = True +python_version = 3.6 +warn_unused_configs = True