Next: , Previous: BuildEPYDoc, Up: Python BuildSteps PyFlakes

PyFlakes is a tool to perform basic static analysis of Python code to look for simple errors, like missing imports and references of undefined names. It is like a fast and simple form of the C “lint” program. Other tools (like pychecker) provide more detailed results but take longer to run.

The buildbot.steps.python.PyFlakes step will run pyflakes and count the various kinds of errors and warnings it detects.

You must supply the command line to be used. The default is make pyflakes, which assumes you have a top-level Makefile with a “pyflakes” target. You might want to use something like pyflakes . or pyflakes src.

     from buildbot.steps.python import PyFlakes
     f.addStep(PyFlakes(command=["pyflakes", "src"]))