Skip to content

E127 continuation line over-indented for visual indent #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
blueyed opened this issue Jul 16, 2018 · 0 comments
Closed

E127 continuation line over-indented for visual indent #100

blueyed opened this issue Jul 16, 2018 · 0 comments

Comments

@blueyed
Copy link
Member

blueyed commented Jul 16, 2018

flake8 complains about:

    return [msg for msg in msgs
            if (msg[0] == 'notification'
                    and msg[1] == b'redraw'
                    and msg[2][0][0].startswith(b'popupmenu_'))]

and likes this better:

    return [msg for msg in msgs
            if (msg[0] == 'notification'
                and msg[1] == b'redraw'
                and msg[2][0][0].startswith(b'popupmenu_'))]

(E127 continuation line over-indented for visual indent)

black 18.6b4 turns it into:

    return [
        msg
        for msg in msgs
        if (
            msg[0] == "notification"
            and msg[1] == b"redraw"
            and msg[2][0][0].startswith(b"popupmenu_")
        )
    ]

where this plugin also adds extra indentation, but that is ok with flake8:

    return [
        msg
        for msg in msgs
        if (
                msg[0] == "notification"
                and msg[1] == b"redraw"
                and msg[2][0][0].startswith(b"popupmenu_")
        )
    ]

3.5.0 (mccabe: 0.6.1, pycodestyle: 2.4.0, pyflakes: 2.0.0) CPython 3.6.6 on Linux

@blueyed blueyed mentioned this issue Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant