How to find all unused methods of a class in PyCharm?

PyCharm doesn’t offer this feature since it isn’t possible to reliably determine that a method is unused, because there are simply too many ways to call it dynamically.

But you may use Vulture to find most of dead code in a project. Refer to the following commands:

$ pip install -U vulture
$ vulture path_of_project
$ # Use --exclude for excluding particular files (e.g. virtualenv files)
$ vulture --exclude=env path_of_project

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)