←back to thread

365 points tanelpoder | 1 comments | | HN request time: 0.584s | source
Show context
thanhhaimai ◴[] No.44978239[source]
I'd rather `ruff` being merged with `ty` instead. `uv` for me is about package / project manager. It's not about code style. The only time `uv` should edit a code file is to update its dependencies (PEP 723).

On the other hand, both `ruff` and `ty` are about code style. They both edit the code, either to format or fix typing / lint issues. They are good candidates to be merged.

replies(7): >>44978308 #>>44978351 #>>44978465 #>>44978499 #>>44978500 #>>44979712 #>>44981364 #
zahlman ◴[] No.44978465[source]
This is the direction I expected things to go, and not something I'm especially fond of. I'll stick with UNIX-philosophy tools, thanks.
replies(5): >>44978583 #>>44979916 #>>44979956 #>>44980082 #>>44981479 #
zem ◴[] No.44978583[source]
this is very much in line with the unix philosophy - it delegates formatting to ruff and simply provides a unified front end that calls out to the right specialized tool. think of it as a makefile.
replies(3): >>44978776 #>>44982952 #>>44983430 #
zahlman ◴[] No.44978776[source]
I don't think this is an apt (pun intended?) comparison at all.
replies(1): >>44980903 #
d0mine ◴[] No.44980903[source]
One can find repos using `make format` / `make lint`/ `make typecheck` / or similar

I remember David Beazley mentioning that code with Makefiles were relatively easier to analyze based on ~Terabyte of C++ code and no internet connection (pycon 2014) https://youtube.com/watch?v=RZ4Sn-Y7AP8

replies(1): >>44981326 #
Kwpolska ◴[] No.44981326[source]
That `make format` command was not defined by the Make developers, but by the team using Make in their project. They picked their favorite formatter and defined a shortcut. In this case, the uv developers are forcing the command on everyone, and they're using it to cross-promote their own formatting tool.
replies(3): >>44982690 #>>44984997 #>>44986779 #
1. asa400 ◴[] No.44984997[source]
Other people having an opinion and creating their own software project to implement it is not “forcing” anyone to do anything.

The inverse would be no one is allowed to create any projects that you don’t personally agree with.