pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

Relax E127 with dictionary values: allow extra indent

Open blueyed opened this issue 7 years ago • 1 comments

Currently pycodestyle will complain about the following:

mydict = {12345:
              'foo'}

t-61.py:2:15: E127 continuation line over-indented for visual indent

We are about to change this in https://github.com/Vimjas/vim-python-pep8-indent/pull/61, and there has been some discussion in https://github.com/python/peps/pull/113 - resulting in keeping this out of PEP8 itself (i.e. undefined).

I think pycodestyle should handle this in a relaxed way, and allow for an extra indentation level for dictionary values (after : on the previous line).

blueyed avatar Jul 26 '18 09:07 blueyed