Hi,

I'm using vulture to find dead code: 

https://pypi.org/project/vulture/

In my case it just generates a list of warnings for the whole project, but it 
should be simple to retrieve information about just one callable from its 
output. 

Best regards, Ulf

Am 26. Oktober 2022 01:19:16 MESZ schrieb Dan Stromberg <drsali...@gmail.com>:
>Hello people.
>
>Assume you have a software system that is self-contained: you do not need
>to concern yourself with client code that is outside that tree (because
>there is none, or you arbitrarily declare it unimportant as a simplifying
>assumption).
>
>Is there a tool for Python that can assess whether a given function (or
>list of functions, method or list of methods) is used or not, within that
>source tree?
>
>grep, which is what I've been using, only goes so far.  It finds comments,
>and it finds methods by name independent of what class they are associated
>with.
>
>I have a feeling there are IDE's that do this.  These I'm interested in,
>but I'm a bit more interested in standalone tools apart from a GUI.
>
>Thanks.
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: arch...@mail-archive.com

Reply via email to