A flake8 plugin that flags unnecessary f-strings (e.g., f"{var}" where a simple string or format would do). Current version: 1.0.1. Release cadence is low; no recent updates.
pip install flake8-no-unnecessary-fstringsVerified import paths — ran on the pinned version, not inferred.
Install the plugin, configure flake8 to ignore rule F (if desired), then run flake8 on a file. The plugin adds rule code F.
Use flake8's --select or --ignore with full code e.g., '--ignore=F' vs '--ignore=F401'.
Understand the rule's intent: ban f-strings that don't use f-string features (like formatting or multiple expressions). Consider disabling with --no-necessary-fstrings or adding noqa.