Closed a-t-0 closed 1 year ago
Thanks for sharing the code! Judging by a very quick glance at the code, this seems similar to what Vulture does under the hood.
Note that you can cover multiple directories/repos with Vulture by passing all of them on the command line.
Context
Hi, thank you for your work! Whilst using your code I encountered two difficulties:
Solution
So I wrote a script that lists all functions that are declared with
def some_function_name(..
, which are not called in any python file within a folder (containing multiple repositories), using the Python abstract syntax tree parser. Perhaps you/users find it convenient to have it as an optional command:Code
Limitations
It skips files in build/lib directories. It ignores functions that start with:
test_
.