Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore subclasses #301

Closed
jonnyarnold opened this issue Feb 3, 2023 · 1 comment
Closed

Ignore subclasses #301

jonnyarnold opened this issue Feb 3, 2023 · 1 comment

Comments

@jonnyarnold
Copy link

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:

  • Django Admin uses class attributes to customise the way an admin page is displayed.
  • Django Forms uses custom class attributes to define fields in Python; these are converted to their respective HTML when rendered on a page. (Their values are typically not accessed through these class attributes.)
  • Django Models uses a Meta inner class within a Model class to customise how the model will behave.

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
Copy link
Owner

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

@jendrikseipp jendrikseipp closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants