Skip to main content

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.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

Metadata

Release files for flake8-pep3101 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-pep3101 3.1.0
File Size Uploaded Provenance Actions
flake8_pep3101-3.1.0.tar.gz 14.7 kB Without provenance Details for flake8_pep3101-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-pep3101 3.1.0
File Interpreter ABI Platform Actions
flake8_pep3101-3.1.0-py3-none-any.whl Python 3 none any Details for flake8_pep3101-3.1.0-py3-none-any.whl

Total release size: 31.3 kB

Release files / flake8_pep3101-3.1.0.tar.gz

Download URL flake8_pep3101-3.1.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03d6a3503391cb0fe4cca838767443deb5185c5c1d9876d6aae73e7d7f890461
BLAKE2b-256 checksum
How to use checksums
dd99701bb11feba018b8d16b5a336e291caef4a9888aa36625ef9f074e585ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / flake8_pep3101-3.1.0-py3-none-any.whl

Download URL flake8_pep3101-3.1.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a98f69087fa1d97e2eb121e54eac8f7404cc95cf0211408c4753557d87b8c799
BLAKE2b-256 checksum
How to use checksums
7610fbf988bbb1a144171b1a260e1f393535446df512d05dc4b2f344ba9b2f83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for flake8-pep3101 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page