开发者

Checkstyle for Python

开发者 https://www.devze.com 2023-01-02 03:11 出处:网络
Is there an application similar to Java\'s Checkstyle for Python? By which I mean, a tool that analyzes Python code and can be run as part of continuous integration (e.g. CruiseControl or Hudson). Af

Is there an application similar to Java's Checkstyle for Python?

By which I mean, a tool that analyzes Python code and can be run as part of continuous integration (e.g. CruiseControl or Hudson). After an开发者_开发问答alyzing, it should produce an online accessible report which outlines any problems found in the code.

Thank you,


There are actually a lot of tools: as other have said

  • pylint : very very strict (imho too much), yet customizable
  • pep-8 : very good
  • pychecker
  • pyflakes: extremely fast, perfect when used in emacs with flymake.

To format your code according to pep8 I can suggest you PythonTidy


You may look at pylint to see if it fits you needs.


Besides pylint:

the pep-8 tool


Besides pylint and pep-8: pychecker

0

精彩评论

暂无评论...
验证码 换一张
取 消