Skip to main content

A flake8 plugin to ban f-strings

Project description

flake8-no-unnecessary-fstrings

PyPI Code Style Upload Python Package

A flake8 plugin to detect f-strings that don't actually do any interpolation.

Installation

Install from pip with:

python -m pip install flake8-no-unnecessary-fstrings

Python 3.6+ 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-unnecessary-fstrings: 1.0.0, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.0 on Darwin

Rules

  • NUF001: No unecessary 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-unnecessary-fstrings-1.0.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

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