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

E113 is not being fixed #410

Closed
martemyev opened this issue Jun 25, 2018 · 1 comment
Closed

E113 is not being fixed #410

martemyev opened this issue Jun 25, 2018 · 1 comment

Comments

@martemyev
Copy link

martemyev commented Jun 25, 2018

Hi All,

Here is the issue I'm seeing:

$ cat /Users/mikhail/test.py
    # comment
    a = 1
$ ./pycodestyle.py /Users/mikhail/test.py
/Users/mikhail/test.py:1:5: E116 unexpected indentation (comment)
/Users/mikhail/test.py:2:5: E113 unexpected indentation
$ ./autopep8.py /Users/mikhail/test.py -v
--->  Applying global fix for E265
--->  2 issue(s) to fix {'E116': set([1]), 'E113': set([2])}
--->  3 issue(s) to fix {'E114': set([1]), 'E116': set([1]), 'E113': set([2])}
--->  3 issue(s) to fix {'E114': set([1]), 'E116': set([1]), 'E113': set([2])}
--->  3 issue(s) to fix {'E114': set([1]), 'E116': set([1]), 'E113': set([2])}
--->  1 issue(s) to fix {'E113': set([2])}
# comment
    a = 1

I.e. the last line (with error E113) is not fixed. Also, I'm not sure why the meaning of the error in autopep8

$ ./autopep8.py --list-fixes | grep E113
E113 - Fix over-indented comments.

is different from pycodestyle and, apparently, PEP8:

E113 unexpected indentation

Thank you!

P.S. I used the latest versions of pycodestyle and autopep8 for the examples above.

@hhatto hhatto mentioned this issue Aug 21, 2018
@hhatto
Copy link
Owner

hhatto commented Aug 21, 2018

@martemyev

fix in the latest master branch. a9b49c4

Thank you!!

@hhatto hhatto closed this as completed Aug 21, 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

2 participants