Checks for old string formatting
Project Links
Meta
Author: Gil Forcada Codinachs
Requires Python: >=3.10
Classifiers
Development Status
- 5 - Production/Stable
Environment
- Console
Framework
- Flake8
Intended Audience
- Developers
License
- OSI Approved :: GNU General Public License v2 (GPLv2)
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3 :: Only
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Topic
- Software Development
- Software Development :: Quality Assurance
Flake8 PEP 3101 plugin
Python has three string formatting options:
the old percent operator
the .format() string method
f-strings (only since python 3.6+)
Although f-strings are more ergonomic, there a certain scenarios where the .format() method is still the only viable option.
See pyformat website for examples of the percent operator vs the format() method.
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 3.8, 3.9, 3.10, 3.11 and pypy3
flake8
Extras
If you want to check whether your new style formatting are correctly defined, check flake8-string-format plugin.
License
GPL 2.0
3.0.0
Oct 25, 2025
2.1.0
Nov 02, 2023
2.0.0
Oct 08, 2022
1.3.0
Dec 14, 2019
1.2.1
Apr 05, 2018
1.2
Dec 12, 2017
1.1
May 11, 2017
1.0
Nov 27, 2016
0.6
Oct 28, 2016
0.5
Oct 26, 2016
0.4
Jul 03, 2016
0.3
Mar 05, 2016
0.2
Sep 16, 2015