Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Additional pyflakes

Project Description


flakeplus detects some additional flakes, part of the release process for Celery, Kombu


  • All files must import absolute_import from __future__.

  • If Python 2.5 is a target, any file using the with statement must also import that from __future__

    Disabled by options --2.6 and --2.7).

  • If Python 2.7 is the target --2.7 then all files must also import unicode_literals from __future__.

  • Code cannot contain debugging print statements

    A debugging print statement is any print emitting a string that

    • optionally starts with any sequence of non-alphanumeric chars
    • an all-uppercase word followed by a colon,


    print('CONN: %r' % (connection,))     # DEBUG!
    print('The connection was lost')       # NOT DEBUG
    print('> STUPID: %r' % (obj,))        # DEBUG!
    print('>>>>> OMFG: %r !!!!' % (obj,)) # definitely DEBUG!


flakeplus is run from the commandline:

$ flakeplus dir1 .. dirN

If the target version is 2.6 and above, use the 2.6 switch:

$ flakeplus --2.6 dir1 .. dirN

If the target version is 2.7 and above, use the 2.7 switch:

$ flakeplus --2.7 dir1 .. dirN


You can install flakeplus either via the Python Package Index (PyPI) or from source.

To install using pip,:

$ pip install -U flakeplus

To install using easy_install,:

$ easy_install -U flakeplus

Downloading and installing from source

Download the latest version of flakeplus from

You can install it by doing the following,:

$ tar xvfz flakeplus-0.0.0.tar.gz
$ cd flakeplus-0.0.0
$ python build
# python install # as root

Using the development version

You can clone the repository by doing the following:

$ git clone git://

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at


This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(7.1 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Mar 29, 2016
(6.8 kB) Copy SHA256 Hash SHA256
Source None Mar 29, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting