15

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 analyzing, it should produce an online accessible report which outlines any problems found in the code.

Thank you,

4 Answers 4

18

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

Sign up to request clarification or add additional context in comments.

Comments

6

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

Comments

6

Besides pylint:

the pep-8 tool

Comments

1

Besides pylint and pep-8: pychecker

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.