uv
uv copied to clipboard
implement `--invert` for `pip tree`
Summary
partially resolves https://github.com/astral-sh/uv/issues/4439
Test Plan
existing tests pass + added a couple of new tests with --invert.
all done 🌵
I haven't looked at the implementation in detail, but is there a reason we want this to be --invert instead of --reverse like in pipdeptree?
I haven't looked at the implementation in detail, but is there a reason we want this to be
--invertinstead of--reverselike inpipdeptree?
no reason, i just followed the naming convention in cargo tree, but if there's an overall preference for --reverse i'm happy to rename 👍
I kind of find --invert clearer, but we can provide a hidden alias --reverse for pipdeptree compatibility.