]> git.proxmox.com Git - mirror_qemu.git/commitdiff
python: add mypy config
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 17:51:21 +0000 (13:51 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 20 Oct 2020 13:37:57 +0000 (09:37 -0400)
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 <jsnow@redhat.com>
Message-id: 20201009175123.249009-2-jsnow@redhat.com
[Edit: Added newline; thanks Bin Meng --js]
Signed-off-by: John Snow <jsnow@redhat.com>
python/mypy.ini [new file with mode: 0644]

diff --git a/python/mypy.ini b/python/mypy.ini
new file mode 100644 (file)
index 0000000..1a581c5
--- /dev/null
@@ -0,0 +1,4 @@
+[mypy]
+strict = True
+python_version = 3.6
+warn_unused_configs = True