Skip to main content

A flake8 plugin to ban f-strings

Project description

flake8-no-fstring

https://img.shields.io/pypi/v/flake8-no-fstring.svg https://img.shields.io/travis/adamchainz/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.1 (2020-03-19)

  • Update HISTORY.rst

1.0.0 (2020-03-19)

  • First release on PyPI.

  • NF001 rule that complains about f-strings.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-no-fstring-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file flake8-no-fstring-1.0.1.tar.gz.

File metadata

  • Download URL: flake8-no-fstring-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for flake8-no-fstring-1.0.1.tar.gz
Algorithm Hash digest
SHA256 659e78141d11cfc98a11d693928bfb69ad11b66beb9f6492245caee1aa6d8207
MD5 ad837d9a7b3e8a0c79ae14b33b3ee8f6
BLAKE2b-256 152c9a0f9e3e95199f41f1acc9bf3b77039e3717d173c7242e59732ad1b8eca4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page