在Eclipse中启用pep8 [英] Enable pep8 in Eclipse
问题描述
我启用PEP8在窗口>首选项> pydev>编辑器> codeAnalysis> pep8.py>警告,我试图点击我的项目文件夹> pydev>代码分析
但不幸的是它不起作用。
$ b
$ b
所以,你现在的项目中的源代码是源文件夹下的文件夹,还是文件夹的实际包(也就是:他们是否有 __ init __。py
文件? p>
有关详细信息,请参阅: http://pydev.org/manual_101_project_conf2.html 配置源文件夹。
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.
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.
这篇关于在Eclipse中启用pep8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!