invalid-rule-code (RUF102)
Fix is always available.
This rule is unstable and in preview. The --preview
flag is required for use.
What it does
Checks for noqa
codes that are invalid.
Why is this bad?
Invalid rule codes serve no purpose and may indicate outdated code suppressions.
Example
Use instead:
Or if there are still valid codes needed: