Reputation: 2997
I want to be alerted when I write python code that violates pep8 in the eclipse editor. As far as I can see, the settings show it should be running pep8. (Below is a screenshot of my pydev settings). I have tried:
Any suggestions or input on how I can get pep8 to work for me in eclipse, I'd appreciate it.
Upvotes: 3
Views: 2634
Reputation: 63312
Per an answer by Fabio, in the project's properties, add the package folder to PYTHONPATH
, and also restart Eclipse if it still doesn't work.
You can also use the latest version of pep8
as an External Tool
in Eclipse. For details, see an answer by Dmitry.
Upvotes: 0
Reputation: 28380
I think that you have to actively run pep8 tests when you are ready - not sure where it is hidden in the menus or if there is a keyboard short cut - try looking under 'Tools' in the menus.
The other possibility is that you may not have pep8 correctly installed where it is indicated - try copying the path from the above into a command prompt and seeing if it runs with a sample .py file and does not error. If it doesn't you should be able to install the pep8 checker from pypi under your current python installation and then point eclipse to it.
Upvotes: 1