Skip to main content

Checks for old string formatting.

Project description

https://travis-ci.org/gforcada/flake8-pep3101.svg?branch=master https://coveralls.io/repos/gforcada/flake8-pep3101/badge.svg?branch=master&service=github

Flake8 PEP 3101 plugin

Python has two string formatting options, either the old percent operator or the new .format() string method.

Being the new one more powerful, expressive and a drop-in replacement over the old one.

See pyformat website for lots of examples of old vs new formatting.

For a more format definition see the PEP 3101.

This plugin is based on a python checker that was in plone.recipe.codeanalysis.

Install

Install with pip:

$ pip install flake8-pep3101

Requirements

  • Python 2.7, 3.3, 3.4

  • flake8

Extras

If you want to check whether your new style formatting are correctly defined, check flake8-string-format plugin.

License

GPL 2.0

Changelog

0.2 (2015-09-16)

  • 0.1 was a brown bag release. [gforcada]

0.1 (2015-09-16)

  • Initial release [gforcada]

  • Create the flake8 plugin per se. [gforcada]

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

flake8-pep3101-0.2.tar.gz (11.4 kB view hashes)

Uploaded Source

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