Jump to >

Pyflakes

pyflakes is a static analysis tool that checks Python code for a variety of errors or problems in Python source code.

Supported File Types

The following are supported by this tool:

  • Python: *.py

Installation

pyflakes can be installed on most systems by running:

$ pip install pyflakes

It may also be available in your system’s package manager.

Configuration

Pyflakes Location

If the pyflakes command is in a non-standard location, and can’t be found in Review Bot’s PATH environment variable, then you’ll need to specify the path in the Review Bot worker config file:

exe_paths = {
    'pyflakes': '/path/to/pyflakes',
}

You will need to restart the Review Bot worker after making this change.

Enabling pyflakes in Review Board

You’ll need to add a Review Bot configuration in Review Board (see Tool Configurations).

There are no configuration options available for this tool.