A flake8 plugin that checks for use of old-style % string formatting, enforcing PEP 3101 (str.format and f-strings). Current version 3.0.0, supports Python >=3.10. Maintained on GitHub.
pip install flake8-pep3101Verified import paths — ran on the pinned version, not inferred.
Create a sample Python file with old-style % formatting and run flake8 to see the P101 warning.
Use str.format() or f-strings as per PEP 3101.
Review warnings manually or use # noqa: P101 to suppress if legitimate.
Upgrade to 3.0.0. No code changes needed.
Run 'pip install flake8-pep3101' and ensure flake8 is installed in the same environment.
Do not import manually; just install the package and run 'flake8'.
Use '%%' for literal percent or use # noqa: P101.
No dependency data recorded yet.