Will It Vibe?
CQ-020Info severity-2 points

Unused import (Python)

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 imported name is never referenced elsewhere in the file (AST-based check).

Why it matters

Unused imports slow startup, keep phantom entries alive in requirements files long after the last real use, and can even change behavior when the imported module runs side effects at import time. They also mislead readers about what the module actually depends on.

How to fix it

Remove them with Ruff (rule F401, autofixable via ruff check --fix) or autoflake. Watch for imports kept for side effects or re-export: mark deliberate re-exports with __all__ or the "from x import y as y" form so tools know they are intentional.

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