Skip to main content

Additional pyflakes

Project description

Version:
1.0.0
Download:

http://pypi.python.org/pypi/flakeplus/

Source:

http://github.com/ask/flakeplus/

Keywords:

flakes, development, process

Overview

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

Flakes

  • 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,

    Examples:

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

Example

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

Installation

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 http://pypi.python.org/pypi/flakeplus/

You can install it by doing the following,:

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

Using the development version

You can clone the repository by doing the following:

$ git clone git://github.com/ask/flakeplus.git

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at http://github.com/ask/flakeplus/issues/

License

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

Project details


Download files

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

Source Distribution

flakeplus-1.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

flakeplus-1.1.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flakeplus-1.1.0.tar.gz.

File metadata

  • Download URL: flakeplus-1.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flakeplus-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9f0f27d88558aa935a3cb847a3c9a00365eb956e47b77585c00d6c6e067c823a
MD5 30609d575a090a4b85a1a5b8e2ec1e95
BLAKE2b-256 ccd3556ca1b608924d7d26a874cffbdafe385f36717b8309c47a00742826732f

See more details on using hashes here.

File details

Details for the file flakeplus-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flakeplus-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 98375a58bf20b4bbf66b669621b72bc8e65ecef5b46c3aff4c09dc2cf5a20042
MD5 b504931e58a4826150dfc27a5a7f6d62
BLAKE2b-256 ea73cb6d7924c5bc6a06206c6a5e30863083f5af55652677cb33c37e0cbb62af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page