Skip to content
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

continued_indentation: Make the E128 check similar to pycodestyle #585

Merged
merged 2 commits into from Feb 25, 2021

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Feb 24, 2021

Maybe a simple botch in the following commit:

commit 0f06de12f6a1eaab646089f7c38f1d38a035967c
Author: Steven Myint <git@stevenmyint.com>
Date:   Sat Sep 7 12:52:08 2013 -0700

    Get indentation information directly from pep8

    This greatly speeds up the "E12" indentation fixes.

A small test case:

a = {x: f(x,
     x)
     for x in xs}
  • autopep8 without this commit complains E128.
  • pycodestyle 2.6.0 doesn't complain.
  • autopep8 with this commit doesn't complain.

Maybe a simple botch in the following commit:

```
commit 0f06de1
Author: Steven Myint <git@stevenmyint.com>
Date:   Sat Sep 7 12:52:08 2013 -0700

    Get indentation information directly from pep8

    This greatly speeds up the "E12" indentation fixes.
```

A small test case:
```
a = {x: f(x,
     x)
     for x in xs}
```
* autopep8 without this commit complains E128.
* pycodestyle 2.6.0 doesn't complain.
* autopep8 with this commit doesn't complain.
While I'm not a pep8-laywer, pycodestyle seems to allow either styles.
@hhatto hhatto assigned hhatto and unassigned hhatto Feb 24, 2021
@hhatto hhatto self-requested a review February 24, 2021 07:54
@hhatto hhatto added this to the 2.0 milestone Feb 25, 2021
Copy link
Owner

@hhatto hhatto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.
LGTM 👍

@hhatto hhatto merged commit ab9760c into hhatto:master Feb 25, 2021
This was referenced Mar 16, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants