You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think we want to support rule-specific suppression comments. That would become rather confusing, especially once we remove the linter groups as they exist today (#1774).
Our in-work type checker will support type: ignore comments and it's somewhat likely that we'll support it as well in Ruff once we transition Ruff to use the same infrastructure but with an option to ignoretype: ignore suppression comments.
However, I could also see us to disallow the use of type: ignore for lint like rules. That's why I think we should wait with adding support for type: ignore until we have a better understanding where we'll go with the Ruff/Red Knot integration
Summary
flake8-annotations supports an options
--respect-type-ignore
. See here.It would be great to have support for it in Ruff.
The text was updated successfully, but these errors were encountered: