Re:Uv format: Code Formatting Comes to uv (experimentally)
by WD-42 on Thursday August 21, 2025 @05:28PM
(#44978308)
They are mimicking Rust's cargo, which has `cargo fmt`
[ Parent
| on HN ]
Re:Uv format: Code Formatting Comes to uv (experimentally)
by munificent on Thursday August 21, 2025 @05:31PM
(#44978332)
Also `go fmt` and `dart format`.
Re:Uv format: Code Formatting Comes to uv (experimentally)
by Biganon on Friday August 22, 2025 @01:12AM
(#44981211)
> They are mimicking Rust's cargo
Cargo cargo cult?
Re:Uv format: Code Formatting Comes to uv (experimentally)
by xdennis on Friday August 22, 2025 @03:41PM
(#44988938)
It's not a cargo cult if it actually works.
Re:Uv format: Code Formatting Comes to uv (experimentally)
by petcat on Friday August 22, 2025 @09:58AM
(#44984775)
Doesn't cargo just have a subcommand plugin system? Or is fmt actually hard-coded into the cargo code?
I prefer the plugin system. I don't like god programs like what the npm monstrosity became.
Re:Uv format: Code Formatting Comes to uv (experimentally)
by woodruffw on Friday August 22, 2025 @10:38AM
(#44985227)
cargo has an external subcommand system, but it also has "blessed" (my word choice) external subcommands that are typically bootstrapped via Rust toolchain components. This makes them pretty analogous to what uv does here with `uv format`, in my opinion.