Add option to provide a reason to --add-noqa (#21294)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Micha Reiser
2025-11-11 14:03:46 +01:00
committed by GitHub
parent 36cce347fd
commit 7b237d316f
7 changed files with 110 additions and 9 deletions

View File

@@ -618,8 +618,9 @@ Options:
notebooks, use `--extension ipy:ipynb`
--statistics
Show counts for every rule with at least one violation
--add-noqa
Enable automatic additions of `noqa` directives to failing lines
--add-noqa[=<REASON>]
Enable automatic additions of `noqa` directives to failing lines.
Optionally provide a reason to append after the codes
--show-files
See the files Ruff will be run against with the current settings
--show-settings