4

I enabled PEP8 in my Eclipse Luna for a pydev project and it works if I create a new file but it doesn't work for an existing project/file.

I enabled PEP8 in window> preferences > pydev > editor > codeAnalysis > pep8.py > warning and I tried to click right onto my project folder > pydev > code analysis But unfortunately it doesn't work.

Asclepius
  • 57,944
  • 17
  • 167
  • 143
clement l
  • 109
  • 2
  • 10

1 Answers1

6

PyDev will only analyze valid packages in the PYTHONPATH (i.e.: under a source folder).

So, Are your sources in the existing project under a source folder and are folders actually packages (i.e.: do they have __init__.py files?)

See: http://pydev.org/manual_101_project_conf2.html for details on configuring your source folders.

Fabio Zadrozny
  • 24,814
  • 4
  • 66
  • 78