148

Language / Framework: Python
Checks: 72
Categories: Style
pep8 Version: 1.6.2

Pep8 provides feedback on Python code style following the rules outlined in the PEP 8 style guide.

Enable the Plugin

To enable pep8 analysis, add the following to your .codeclimate.yml configuration file:

plugins:
  pep8:
    enabled: true

More information about the CLI is available in the README here: https://github.com/codeclimate/codeclimate

Configure the Plugin

🚧

PEP8 vs pycodestyle

The PEP8 project has been renamed to pycodestyle. The Code Climate PEP8 engine has not been updated to incorporate that name change.

To make configuration specifications in your setup.cfg file or tox.ini file, the Code Climate PEP8 engine requires that you include those changes in:

  • a [pep8] config section
  • instead of [pycodestyle] config section.

You can configure pep8 using pep8 config files as described in the official pep8 documentation: http://pep8.readthedocs.org/en/latest/intro.html#configuration

Understand the Plugin

Lots has been written about pep8 - this is a great place to start: https://www.python.org/dev/peps/pep-0008/