Warn about error being related to a deprecated rule (original) (raw)
Summary
My case - was trying out Ruff and enabled UP. Going through the log of found errors, I've found that UP038 from my point of view seems unreasonable, checking the documentation I've found that it's actually deprecated and will be removed soon.
A suggestion - ruff check to warn that found error is related to a deprecated rule, so it will be possible to find deprecated rules just by using ruff, without checking documentation. This would improve rule deprecation discoverability.
(I'm hope I'm not missing some option that already does that, but couldn't find anything related in https://docs.astral.sh/ruff/settings/)
a = 25 print(isinstance(25, (str, int)))