Caution
Buildbot no longer supports Python 2.7 on the Buildbot master.
2.5.11.35. PyFlakes¶
- class buildbot.steps.python.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 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.plugins import steps
f.addStep(steps.PyFlakes(command=["pyflakes", "src"]))