Replies: 1 comment 8 replies
-
Unfortunately, Ruff doesn't support finding all subclasses of a type. How complicated is your inheritance structure? You might be able to build something very naive for your specific use case:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I work on a 4.5 million line Python monolith and I want to be able to make a linter check that finds all the subclasses of a specific class to perform checks on those.
The problem becomes discovering all those subclasses is complicated and slow using the tools we already have.
I'm wondering if it's possible to use ruff to collect that information from the repository to then feed to my existing linter checks?
I tried to look at whether I could use the lsp protocol to ask ruff server for such info and quickly discovered that is not straight forward.
Beta Was this translation helpful? Give feedback.
All reactions