Document that implicit ranges will produce RUF104

This commit is contained in:
Amethyst Reese 2025-12-11 17:25:45 -08:00
parent cb211a8580
commit 999a481e74
1 changed files with 3 additions and 0 deletions

View File

@ -384,6 +384,9 @@ foo()
It is strongly suggested to use explicit range suppressions, in order to prevent
accidental suppressions of violations, especially at global module scope.
For this reason, a `RUF104` diagnostic will also be produced for any implicit range.
If implicit range suppressions are desired, the `RUF104` rule can be disabled,
or an inline `noqa` suppression can be added to the end of the "disable" comment.
Range suppressions cannot be used to enable or select rules that aren't already
selected by the project configuration or runtime flags. An "enable" comment can only