Micha Reiser
Micha Reiser
It could be if we use rule names instead of codes or if there are multiple codes.
> couldn't it just be in the `help` part of the output? Yeah, that's what I would prefer.
Yes, this is a good point. I don't think we can implement this today without multifile-analysis
All Ruff rules don't understand Protocols, or class inheritance (with few hardcoded exceptions) because Ruff doesn't support multifile analysis (it doesn't understand the `Protocol` type nor can it resolve the...
> I think this is a smart change. We should document it in the Black deviations though. Thanks for the feedback. I plan to document the deviations as part of...
Thanks for the kind words. If I'm not mistaken than this rule shipped as part of ruff 0.5.5 but under preview mode only. See https://github.com/astral-sh/ruff/pull/11471
Oh yeah sorry. That's something else. I don't think we have the necessary infrastructure in place today because ruff can't do any cross-file analysis.
Thanks. Would you mind adding a test demonstrating that restoring the flag is necessary?
We unfortunately don't have any semantic model tests. So the best you can do is to extend the tests of a rule that uses the flag. One such rule is...
Thanks and nice find!