[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC 05/32] python/qemu/lib: delint; add flake8 config
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH RFC 05/32] python/qemu/lib: delint; add flake8 config |
Date: |
Sun, 31 May 2020 11:57:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 5/14/20 7:53 AM, John Snow wrote:
> Mostly, ignore the "no bare except" rule, because flake8 is not
> contextual and cannot determine if we re-raise. Pylint can, though, so
> always prefer pylint for that.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> python/qemu/lib/.flake8 | 2 ++
> python/qemu/lib/accel.py | 9 ++++++---
> python/qemu/lib/machine.py | 13 +++++++++----
> python/qemu/lib/qmp.py | 4 ++--
> 4 files changed, 19 insertions(+), 9 deletions(-)
> create mode 100644 python/qemu/lib/.flake8
Thanks, applied to my python-next tree:
https://gitlab.com/philmd/qemu/commits/python-next
- Re: [PATCH RFC 02/32] scripts/qmp: Fix shebang and imports, (continued)
- [PATCH RFC 05/32] python/qemu/lib: delint; add flake8 config, John Snow, 2020/05/14
- [PATCH RFC 06/32] python/qemu: formalize as package, John Snow, 2020/05/14
- [PATCH RFC 07/32] python/qemu: add README.rst, John Snow, 2020/05/14
- [PATCH RFC 10/32] python/qemu: Add flake8 to Pipfile, John Snow, 2020/05/14
- [PATCH RFC 11/32] python/qemu/lib: remove Python2 style super() calls, John Snow, 2020/05/14
- [PATCH RFC 09/32] python/qemu: add pylint to Pipfile, John Snow, 2020/05/14
- [PATCH RFC 08/32] python/qemu: Add Pipfile, John Snow, 2020/05/14
- [PATCH RFC 15/32] python//qmp.py: Define common types, John Snow, 2020/05/14