Python PEP8 syntax warnings
-
Hi all,
When editing Python files, I would like a WARNING when my Python source code does not conform to the PEP8 code standard.
For example, when there is whitespace at the end of a line, or when lines are not indented in the right way.
I would NOT like the source code to be modified automatically, I want to do that myself.
Does someone know a way to achieve this?
Regards, Magnus
-
Since it is extremely likely that you are a Python expert, you could write a Notepad++ Pythonscript to check for this conformity. :)
-
This post is deleted! -
Nope, I am not an expert…
I would like to have all warnings displayed to me rather than look for them one by one.
I would also prefer using someones work rather than doing it on my own :-)
-
@Magnus-Håkansson said:
I would also prefer using someones work rather than doing it on my own :-)
Often desirable, not always achievable!
-
There are PEP8 checkers available (for example). Nothing is currently built in but using something like the PythonScript plugin, NppExec, etc should be possible. With a bit more work you could even highlight the exact locations of each error, etc.
-
For the record, when I read something like the OP’s question, I presume that they have done their due diligence and have explored external options and have a good reason for wanting to do what they are asking about, inside Notepad++. Not always a good presumption, I guess, but this is a N++ forum, after all. :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login