Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pep8 not working in Eclipse

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:

  • verifying that it is pointing to the correct location for pep8.py
  • changing between error and warning
  • checking and unchecking 'Redirect pep8 output to console'

enter image description here

Any suggestions or input on how I can get pep8 to work for me in eclipse, I'd appreciate it.

like image 881
mdoc-2011 Avatar asked Feb 18 '26 05:02

mdoc-2011


1 Answers

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.

like image 181
Steve Barnes Avatar answered Feb 19 '26 20:02

Steve Barnes