Hi!
Ruff can automatically add noqa directives, but they don't have any info about how they were added:
and it may be difficult to distinguish intentionally/manually added noqa and those automatically added.
I think, main use case is migration to ruff for existing codebase without fixing everything at once, but it should be clear that those noqa added automatically and should be handled at some point, something like that:
# noqa: S308 FIXME when you are here
Downside of it - adding longer comment will produce more formatting changes, so, perhaps
or even ruff may have some argument for provide the text of comment.
Hi!
Ruff can automatically add
noqadirectives, but they don't have any info about how they were added:and it may be difficult to distinguish intentionally/manually added
noqaand those automatically added.I think, main use case is migration to ruff for existing codebase without fixing everything at once, but it should be clear that those
noqaadded automatically and should be handled at some point, something like that:Downside of it - adding longer comment will produce more formatting changes, so, perhaps
or even ruff may have some argument for provide the text of comment.