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 with pip:
$ pip install flake8-pep3101
- Python 2.7, 3.3, 3.4
- flake8
If you want to check whether your new style formatting are correctly defined, check flake8-string-format plugin.
GPL 2.0