Skip to main content

flake8-no-fstring

https://img.shields.io/pypi/v/flake8-no-fstring.svg https://img.shields.io/travis/seporaitis/flake8-no-fstring.svg https://img.shields.io/badge/code%20style-black-000000.svg

A flake8 plugin to ban f-string.

This can be useful in code bases where packages are shared between two different python versions, one of which does not support f-strings.

Installation

Install from pip with:

python -m pip install flake8-no-fstring

Python 3.6 to 3.8 supported.

When installed it will automatically be run as part of flake8; you can check it is being picked up with:

$ flake8 --version
3.7.9 (flake8-no-fstring: 1.0.0, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.0 on Darwin

Rules

NF001: No f-string

Complains about f-strings.

History

1.0.3 (2020-03-20)

  • Remove redundant code (PR #1).

1.0.2 (2020-03-20)

  • Update documentation, links and badges.

1.0.1 (2020-03-19)

  • Update HISTORY.rst

1.0.0 (2020-03-19)

  • First release on PyPI.

  • NF001 rule that complains about f-strings.

Metadata

Release files for flake8-no-fstring 1.0.3

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-no-fstring 1.0.3
File Size Uploaded
flake8-no-fstring-1.0.3.tar.gz 4.9 kB Details

Release files / flake8-no-fstring-1.0.3.tar.gz

Download URL flake8-no-fstring-1.0.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c2ec2e10388360db8f3046afec9683d4fba11106b5883c4c27677deade1307b8
BLAKE2b-256 checksum
How to use checksums
801af9f72631b339aca23a7ad7181c95ebd917cbc2f9c3d6269877e16ff1bdc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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