You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if this tool ever found a real true positive, given that we are running it at confidence=100%, which can only find very limited things? Sure, dead code in tests isn't ideal and possibly scary, but if this only finds the plain obvious cases, that are unlikely to be written, and trivial to catch during manual review, maybe it could be removed?
No strong opinion, just wondering. In the meantime, I've submitted #34814
Yes I've been hoping astral would pick this up too for some time, but it seems like for now, all astral has on this front (via ty) is unused variable detection and a few other easy-to-spot types. But no "unused classes or functions". AFAIU there seems to be some barriers on how to implement sanely for python, as there's not an obious way to do it outside of parsing all files for all usage of all classes etc. as everything in python in public.
ty has a similar issue here: astral-sh/ty#2829, and I might slightly expect it to be added there rather than ruff...
all astral has on this front (via ty) is unused variable detection and a few other easy-to-spot types. But no "unused classes or functions".
I think this is also what vulture does for us, no? Unused classes and functions need to be manually removed, see 5c00536
I guess it could help to have a set of MWE what vulture catches today for use, and what ty catches. If they are the same, it could make sense to use ty.
I guess it could help to have a set of MWE what vulture catches today for use, and what ty catches. If they are the same, it could make sense to use ty.
I could try and work something like that out. I do have #34547 open to switch to ty (amongst other things) already :)
Activity
lint: Temporarily revert to vulture==2.14
maflcko commentedon Mar 12, 2026
I wonder if this tool ever found a real true positive, given that we are running it at confidence=100%, which can only find very limited things? Sure, dead code in tests isn't ideal and possibly scary, but if this only finds the plain obvious cases, that are unlikely to be written, and trivial to catch during manual review, maybe it could be removed?
No strong opinion, just wondering. In the meantime, I've submitted #34814
fanquake commentedon Mar 12, 2026
I was hoping that it's functionality would just be ingested by ruff at some point: astral-sh/ruff#872
willcl-ark commentedon Mar 12, 2026
Yes I've been hoping astral would pick this up too for some time, but it seems like for now, all astral has on this front (via
ty) is unused variable detection and a few other easy-to-spot types. But no "unused classes or functions". AFAIU there seems to be some barriers on how to implement sanely for python, as there's not an obious way to do it outside of parsing all files for all usage of all classes etc. as everything in python in public.ty has a similar issue here: astral-sh/ty#2829, and I might slightly expect it to be added there rather than ruff...
Merge #34814: lint: Temporarily revert to vulture==2.14
lint: Temporarily revert to vulture==2.14
fanquake commentedon Mar 12, 2026
Closing via #34814.
maflcko commentedon Mar 12, 2026
I think this is also what vulture does for us, no? Unused classes and functions need to be manually removed, see 5c00536
I guess it could help to have a set of MWE what vulture catches today for use, and what ty catches. If they are the same, it could make sense to use ty.
willcl-ark commentedon Mar 12, 2026
I could try and work something like that out. I do have #34547 open to switch to
ty(amongst other things) already :)maflcko commentedon Mar 12, 2026
(Also, GitHub changed the merge commit refresh schedule https://github.blog/changelog/2026-02-19-changes-to-test-merge-commit-generation-for-pull-requests/, since the current commit was 10h old, not 12h, I closed and re-opened the pull to re-trigger)
3 remaining items
willcl-ark commentedon Mar 12, 2026
I believe so
maflcko commentedon Mar 12, 2026
Ok suggested that in #34816
Enabling https://docs.astral.sh/ruff/rules/#flake8-unused-arguments-arg for ruff, or ty stuff can be done in a separate pull.
Merge bitcoin/bitcoin#34816: test: Remove vulture from ci, Remove som…
lint: Temporarily revert to vulture==2.14
lint: Temporarily revert to vulture==2.14
Merge bitcoin/bitcoin#34814: lint: Temporarily revert to vulture==2.14
Merge bitcoin/bitcoin#34816: test: Remove vulture from ci, Remove som…
lint: Temporarily revert to vulture==2.14
Merge bitcoin/bitcoin#34814: lint: Temporarily revert to vulture==2.14
Merge bitcoin/bitcoin#34816: test: Remove vulture from ci, Remove som…
lint: Temporarily revert to vulture==2.14
Merge bitcoin/bitcoin#34814: lint: Temporarily revert to vulture==2.14
Merge bitcoin/bitcoin#34816: test: Remove vulture from ci, Remove som…