diff mbox series

[1/3] python: add mypy config

Message ID 20201009175123.249009-2-jsnow@redhat.com
State Superseded
Headers show
Series python/qemu: strictly typed mypy conversion, pt3 | expand

Commit Message

John Snow Oct. 9, 2020, 5:51 p.m. UTC
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

Comments

Bin Meng Oct. 13, 2020, 9:15 a.m. UTC | #1
On Sat, Oct 10, 2020 at 1:54 AM John Snow <jsnow@redhat.com> wrote:
>

> 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

> +python_version = 3.6

> +warn_unused_configs = True

> \ No newline at end of file


Missing "\n" at the end of file

Regards,
Bin
John Snow Oct. 13, 2020, 5 p.m. UTC | #2
On 10/13/20 5:15 AM, Bin Meng wrote:
> On Sat, Oct 10, 2020 at 1:54 AM John Snow <jsnow@redhat.com> wrote:
>>
>> 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
>> +python_version = 3.6
>> +warn_unused_configs = True
>> \ No newline at end of file
> 
> Missing "\n" at the end of file
> 
> Regards,
> Bin
> 

Easily fixed, thanks!
diff mbox series

Patch

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
+python_version = 3.6
+warn_unused_configs = True
\ No newline at end of file