CI Perf Lint

prefer-uv-pip-over-pip

What it flags

Flags pip install commands in jobs that already have setup-uv available. If uv is already installed (via astral-sh/setup-uv), plain pip install should be replaced with uv pip install for faster installs.

Why it matters

uv pip install is a drop-in replacement for pip install. It accepts the same arguments, reads the same requirements files, and installs into the same virtual environment. The resolver and installer are significantly faster, especially for projects with many dependencies.

When a job already sets up uv, using plain pip install is a missed optimization opportunity.

Current heuristic

The rule looks for:

The rule intentionally skips:

When to ignore it

Ignore this finding when:

Suggested verification

Sources