(🎁) `PGH004` should suggest the code
a # noqa
> ruff check
test.py:1:4: PGH004 Use specific rule codes when using `noqa`
it should suggest the required error codes, additionally, it could have an autofix
https://play.ruff.rs/e847f4d3-7278-482b-a334-a1073b101829
A fix would definitely be useful. I'm not convinced that we should include the error codes in the message. It could make the message unnecessarily long. But we could include a hint when we have our revamped diagnostic system
I don't think suggesting the code in the error message would make the message very long:
-test.py:1:4: PGH004 Use specific rule codes when using `noqa`
+test.py:1:4: PGH004 Use `noqa: F811` rather than catch-all suppression comment
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?
couldn't it just be in the
helppart of the output?
Yeah, that's what I would prefer.