Re: [libvirt] [PATCH] maint: Use flake8 to check python code

2019-09-17 Thread Ján Tomko
On Tue, Sep 17, 2019 at 05:37:24PM +0200, Ján Tomko wrote: On Fri, Sep 13, 2019 at 01:37:20AM +0800, Shi Lei wrote: Replace 'sc_prohibit_semicolon_at_eol_in_python' with generic 'sc_flake8' rule to check python code style. Now 'sc_flake8' just check the error E703: 'statement ends with a

Re: [libvirt] [PATCH] maint: Use flake8 to check python code

2019-09-17 Thread Ján Tomko
On Fri, Sep 13, 2019 at 01:37:20AM +0800, Shi Lei wrote: Replace 'sc_prohibit_semicolon_at_eol_in_python' with generic 'sc_flake8' rule to check python code style. Now 'sc_flake8' just check the error E703: 'statement ends with a semicolon'. In future, we could use '--select' to introduce more

[libvirt] [PATCH] maint: Use flake8 to check python code

2019-09-12 Thread Shi Lei
Replace 'sc_prohibit_semicolon_at_eol_in_python' with generic 'sc_flake8' rule to check python code style. Now 'sc_flake8' just check the error E703: 'statement ends with a semicolon'. In future, we could use '--select' to introduce more rules. Signed-off-by: Shi Lei --- cfg.mk | 8