Will It Vibe logoWill It Vibe?
PY-017Info severity-2 points

f-string with no interpolation placeholders

Part of Code Quality & Syntax, which counts for 20% of the overall score. When this check fires it deducts 2 points from that category, once per scan, no matter how many places it turns up.

What it detects

An f-string with no {expression} inside it behaves exactly like a plain string but tells the reader that interpolation is happening when it is not.

Why it matters

An f-string with no {expression} inside it behaves exactly like a plain string but pays a small unnecessary parsing cost and, more importantly, tells the next reader interpolation is happening somewhere in the string when it is not. It is a purely cosmetic issue with zero functional impact, most often left over from editing a string down to nothing dynamic, or copy-pasting from a template that did have a placeholder.

How to fix it

Drop the leading f and use a plain string literal instead, for example "Welcome to the dashboard" instead of f"Welcome to the dashboard". If you expect to add a placeholder soon, that is a fine reason to keep the f prefix, but for stable, static text a plain string is clearer.

The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing

Does your repo trip this check?

Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.

Scan your repo

Related Code Quality & Syntax checks