views:

431

answers:

2

I have installed pylint via easy_install. I can run lint.py <filename> with success. But pydev refuses to use it.

  • I checked "use pylint"
  • I configured correct path
  • I updated my python interpreter in eclipse to have pylit in pythonpath
  • I use Eclipse Galileo
  • I have build automatically checked
  • I tried cleaning whole project and no errors

What am I doing wrong?

+7  A: 

I'm guessing you may need need to mark the folder that contains your code as a "source folder". You can do this under project properties.

  • Project->Properties->PyDev-PYTHONPATH
  • add relevant folders to the list of sources.
ariddell
Fixed it for me! Thanks!
bnsmith
+1  A: 

I've noticed that Pydev won't run Pylint on files with dashes (hyphens) the the filename; according to the Pydev devs, '-' is not a valid Python module name character, and it doesn't look like they intend to fix it:

http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1915426&amp;group_id=85796&amp;atid=577329

http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2888890&amp;group_id=85796&amp;atid=577332

As if nobody writes scripts in Python... Grumble grumble...

Doctor J