Comment by IshKebab

8 days ago

> Remember: explicit is better than implicit.

It's not implicit. When you run `uv run ...` or `uv sync` you are explicitly asking it to automatically set up a venv.

> Some (me included) would say it’s a bug, not a feature.

Some (you included) would be wrong.

> This is good

What is good? That Pip doesn't have a way to avoid dependency confusion? What??

> but goes against the explicit/implicit rule

No it doesn't. It just does the right thing by default.

> I always recommend not messing with the system’s Python.

The reasons to avoid `pip install pre-commit` (outside a venv) are precisely because Pip can't do that in a sane way! `uv tool install pre-commit` suffers from none of the reasons to avoid `pip install pre-commit`.

You definitely have stockholm syndrome. Give uv a try.