Remix.run Logo
▲ Bringing uv and ty together(astral.sh)
71 points by Ravencentric 3 days ago | 18 comments
▲WhyNotHugo 4 hours ago | parent | next [-]

I dislike the idea of these separate tools being blended like this. ty is currently perfectly usable on non-uv projects. uv has *a lot* of opinionated quirks, its custom lockfile lockfile, and other nuances which many of us dislike — ty being a separate tool works fine with plain pip plus any other dependency manager (e.g.: pip-tools).

Of note though, ty doesn't NEED to be integrated into uv, nor vice-versa; keeping them as standalone tools seems most natural.

▲satvikpendem 4 hours ago | parent | next [-]

A implies B does not mean B implies A too. You can use ty separately, this isn't stopping that, but it is useful for uv check to use ty together.

▲vovavili 4 hours ago | parent | prev | next [-]

Projects that use ty for its type checking but something else than uv for managing dependencies are probably in a very tiny minority of users.

▲jgalt212 3 hours ago | parent [-]

but there's probably lots of projects that use uv, but not ty.

▲vovavili 13 minutes ago | parent [-]

I'd imagine that, for a substantial percentage of these, part of it is to avoid negotiating and bargaining over an additional tool in your CI arsenal, especially in bigger corporate environments where these sort of conversations are dragged through layers of non-technical middle management.

▲hmartin an hour ago | parent | prev [-]

Thank god it has opinionated quirks that old timers dislike.

Otherwise we'd still be stuck in the complete dumpster fire that was the python packaging/venv we had for the previous 20 years.

▲rcleveng an hour ago | parent [-]

True, before UV the only way to package python was a container.

▲thayne an hour ago | parent | prev | next [-]

It seems like it would make more sense for ty to be integrated with ruff than uv.

▲NegativeLatency 41 minutes ago | parent [-]

I imagine uv will subsume both

▲dirtbag__dad 3 hours ago | parent | prev | next [-]

This is what’s up! Having worked on several medium sized python projects where linting and type checking were introduced late in the game, having them as a first class feature of the package manager will save so much unnecessary pain.

IMO, part of the problem is that people just don’t know that linters or tools like this exist at all. This is the best type of product marketing where the product gets meaningfully better, while educating the users for free.

▲xavdid 2 hours ago | parent | prev | next [-]

Ah, this is great! It's a step towards solving my biggest complaint with PEP 723 scripts: bad editor support.

I loved the idea on paper, but without manually creating a matching venv & installing my deps, I wouldn't get in-editor completions during development. That was fine for small things, but intolerable as the script grew. So it's still not a feature I've used much, since it made more sense to just make a real dev environment.

I'm glad to see there'll be improvements here!

▲bitpush 4 hours ago | parent | prev | next [-]

I really really love uv but this uv-ty post seems "shipping the org chart"?

They could have just said uv now has type chancing capabilities (or whatever it is ..) ty afaik isn't a super popular brand so the post makes people first understand what ty is ..

▲flexagoon 4 hours ago | parent | prev | next [-]

I'm really glad that unlike most other recent acquisitions, OpenAI's acquisition of Astral had seemingly no negative impact on their products

▲doot 4 hours ago | parent [-]

It’s barely been 6 months. Give it time.

▲Philpax 2 hours ago | parent | prev | next [-]

One step closer to bringing the Rust experience to Python. Good.

▲LoganDark 2 hours ago | parent [-]

This isn't the Rust experience. Rust still distributes clippy as completely separate from cargo, and rustfmt as separate too, etc. it's technically only rustup that centralizes the distribution of the tools together.

▲dsp_person 3 hours ago | parent | prev [-]

what happened to pyx?

▲ameliaquining 2 hours ago | parent [-]

https://pydevtools.com/blog/astral-winds-down-pyx-open-sourc...