-
Notifications
You must be signed in to change notification settings - Fork 1
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
"Wrong hanging indentation" - misreported, not clearing #41
Comments
This is from
I agree with your assessment though. Your formatting is perfectly fine. |
@myint, you're totally right, I upgraded my pylint from 1.2.0 to 1.2.1 and am now getting the note. Pylint seems to want:
I've gone ahead and opened an issue for The full 1.2.1 changelog is:
But since this is a pylint and not a landscape issue, I'll go ahead and close this out. |
@shidarin Oddly I can't reproduce this locally using pylint 1.2.1 I notice you don't have
|
I know this is silly, since you probably read this earlier in the thread, but pylint was updated 4 days ago, and only the new version flags this. I'll throw a gist up with different indent errors and passes in the morning. I didn't try backslash escaping, I was decently sure pylint would accept that- even if pep8 says you shouldn't. Instead I specifically disabled C0330 on all 5 erroring indented lines. Gotta take a stand somewhere. |
Created this gist to have a nice example file. This triggers the following errors for me in pylint 0.2.1:
|
This has been fixed in pylint's default branch. https://bitbucket.org/logilab/pylint/commits/e3ecc895733cdf6ea3c3822abcb58cf08feb7184 |
@myint Ah great! I'll update Landscape once that hits PyPI :) |
This particular issue should be fixed in pylint 1.3 now. Though, I found other related instances, which I've reported. |
Landscape has been using pylint 1.3 for a while now. |
This bug must have started up in the last week, because it wasn't reported on my repo then, and the lines have not changed.
The following code is reported to have the wrong hanging indentation inside of the help text:
I can't get this error to appear in Prospector, pep8, pylint or flake8. It immediately triggers if I change the indentation to an incorrect spacing.
Landscape Repo Error Page
Github Repo
Thanks for your continued help.
The text was updated successfully, but these errors were encountered: