[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 20/20] python: add mypy config
From: |
Kevin Wolf |
Subject: |
Re: [PATCH 20/20] python: add mypy config |
Date: |
Wed, 7 Oct 2020 13:35:12 +0200 |
Am 07.10.2020 um 01:58 hat John Snow geschrieben:
> 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>
> ---
> python/mypy.ini | 4 ++++
> 1 file changed, 4 insertions(+)
> create mode 100644 python/mypy.ini
>
> diff --git a/python/mypy.ini b/python/mypy.ini
> new file mode 100644
> index 00000000000..7a70eca47c6
> --- /dev/null
> +++ b/python/mypy.ini
> @@ -0,0 +1,4 @@
> +[mypy]
> +strict = True
$ mypy --strict qemu
mypy.ini: [mypy]: Strict mode is not supported in configuration files: specify
individual flags instead (see 'mypy -h' for the list of flags enabled in strict
mode)
Success: no issues found in 6 source files
$ mypy --version
mypy 0.740
Did this change in newer mypy versions? I guess it's time that I get the
new laptop which will involve installing a newer Fedora release. :-)
> +python_version = 3.6
> +warn_unused_configs = True
> \ No newline at end of file
Kevin
- Re: [PATCH 15/20] python/qemu/console_socket.py: Add type hint annotations, (continued)
- [PATCH 17/20] python/qemu/qmp.py: Preserve error context on re-raise, John Snow, 2020/10/06
- [PATCH 16/20] python/console_socket: avoid encoding to/from string, John Snow, 2020/10/06
- [PATCH 19/20] python/qemu/qmp.py: Straighten out exception hierarchy, John Snow, 2020/10/06
- [PATCH 20/20] python: add mypy config, John Snow, 2020/10/06
- Re: [PATCH 20/20] python: add mypy config,
Kevin Wolf <=
- Re: [PATCH 00/20] python/qemu: strictly typed mypy conversion, pt2, John Snow, 2020/10/08