←back to thread

365 points tanelpoder | 9 comments | | HN request time: 0.959s | source | bottom
1. vovavili ◴[] No.44978360[source]
Can't you just do this? Why bundle?

  uvx ruff format .
replies(4): >>44978410 #>>44978597 #>>44980317 #>>44981795 #
2. dkdcio ◴[] No.44978410[source]
that’s a bit slow typically
replies(1): >>44978512 #
3. replygirl ◴[] No.44978512[source]
so install ruff?
replies(1): >>44980759 #
4. IshKebab ◴[] No.44978597[source]
Because that's a way less obvious command.
5. ethan_smith ◴[] No.44980317[source]
The native integration offers persistent configuration, caching, and project-aware behavior that uvx (which just creates an ephemeral venv) doesn't provide.
replies(1): >>44987327 #
6. dkdcio ◴[] No.44980759{3}[source]
sure, I do, I was responding to someone who asked why not use uvx to run ruff
7. tspng ◴[] No.44981795[source]
It's not bundled. `uv format` will use the `ruff` binary and more or less run `uvx ruff format` behind the scene.
replies(1): >>44984303 #
8. HelloNurse ◴[] No.44984303[source]
It's this "more or less" that is a problem. More complication, less reliability.
9. vovavili ◴[] No.44987327[source]
I would imagine that a person who is seriously concerned about any of that would just install a standalone version of ruff. Given the existence of uvx, this addition seems like feature creep to me.