[virt-tools-list] [virt-manager PATCH 1/2] pycodestyle: add ignore option

Cole Robinson crobinso at redhat.com
Sun Aug 6 21:18:11 UTC 2017


On 08/05/2017 03:01 AM, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao at gmail.com>
> 
>   Also disabled:
>    E128 continuation line under-indented for visual indent
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao at gmail.com>
> ---
>  setup.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/setup.py b/setup.py
> index 6f4b37b..f042037 100755
> --- a/setup.py
> +++ b/setup.py
> @@ -579,11 +579,13 @@ class CheckPylint(distutils.core.Command):
>  
>          output_format = sys.stdout.isatty() and "colorized" or "text"
>          exclude = ["virtinst/progress.py"]
> +        ignore = ["E128"]
>  
>          print("running pycodestyle")
>          cmd = "pycodestyle "
>          cmd += "--config tests/pycodestyle.cfg "
>          cmd += "--exclude %s " % ",".join(exclude)
> +        cmd += "--ignore %s " % ",".join(ignore)
>          cmd += " ".join(files)
>          os.system(cmd)
>  
> 

E128 is already ignored in tests/pycodestyle.cfg, is that not working for you?

- Cole




More information about the virt-tools-list mailing list