Skip to main content
https://github.com/gforcada/flake8-pep3101/actions/workflows/testing.yml/badge.svg?branch=main https://coveralls.io/repos/gforcada/flake8-pep3101/badge.svg?branch=main

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

Release files for flake8-pep3101 3.0.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.0.0
File Size Uploaded
flake8_pep3101-3.0.0.tar.gz 14.6 kB Details

Built distribution (wheel)

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

Total release size: 31.4 kB

Release files / flake8_pep3101-3.0.0.tar.gz

Download URL flake8_pep3101-3.0.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
15f5978cee8983912a55af16a66f3518eead3ed2df65e3ee5735451e4fe344db
BLAKE2b-256 checksum
How to use checksums
c00c02b72d1eafb2cd8267ce04532013fbb7201e39f4c003d5087817074c1c3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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

Download URL flake8_pep3101-3.0.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
038f81231865d617ddf7be89a7e825cc0a6315e823304c896abc1243918e73cc
BLAKE2b-256 checksum
How to use checksums
1db8b525fa00e80046061f13db76a9cf37e5fa67050c6190d663f983442c9a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

1.0

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

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