flake8-pep3101 2.1.0
pip install flake8-pep3101
Released:
Checks for old string formatting
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License v2 (GPLv2) (GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, ...)
- Author: Gil Forcada Codinachs
- Tags flake8, pep8, pycodestyle, python, string formatting
- Requires: Python >=3.8
Classifiers
- Development Status
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
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
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License v2 (GPLv2) (GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, ...)
- Author: Gil Forcada Codinachs
- Tags flake8, pep8, pycodestyle, python, string formatting
- Requires: Python >=3.8
Classifiers
- Development Status
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flake8_pep3101-2.1.0.tar.gz
.
File metadata
- Download URL: flake8_pep3101-2.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b84b61685f1e631f2f710e5d5ed3ca68b5fc45fb9402fa8ae1b8a9a058a3387 |
|
MD5 | 54314b591034e79d2379fc44aee748ed |
|
BLAKE2b-256 | 6fedc060f44d9fb4af3bbad4b9842f3a5426f96d371fe657e549209a57acad64 |
File details
Details for the file flake8_pep3101-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_pep3101-2.1.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2b8b997ccf0bf0df91532e861465dcfa32a6a306d1dc98f93889cae49f4231 |
|
MD5 | eb436f03a8ed92128b6f3e5ff3f23ed3 |
|
BLAKE2b-256 | e58ae6b7785471154d61dac126fd2bcb288738772a51e5a15cb06da73149ebcf |