jendrikseipp / vulture

Find dead Python code
MIT License
3.38k stars 148 forks source link

Ignore subclasses #301

Closed jonnyarnold closed 1 year ago

jonnyarnold commented 1 year ago

Hi! Thanks for Vulture, it's making it super-easy to get rid of unused code in our large Django project.

Django has a number of APIs that rely on using class definitions as a way of defining elements:

I was wondering how difficult it would be to ignore classes that sub-class a particular class? This would allow me to ignore e.g. Form and Model.

Thanks 🙂

jendrikseipp commented 1 year ago

Thanks for the report. I think the underlying problem is identical to #264.