Closed anz-ableton closed 3 days ago
Hi.
It is documented in the changelog under rule changes but I should have mentioned it in the breaking changes section, to make it more visible. Let me update the changelog real quick
[flake8-bandit] Modify diagnostic ranges for shell-related rules (https://github.com/astral-sh/ruff/pull/10667)
You can use --add-noqa
and https://docs.astral.sh/ruff/rules/unused-noqa/ to automatically move the noqa comments (add the new once and remove the no longer necessary comments)
@MichaReiser Thanks for the swift response and for updating the changelog! I did not know about the --add-noqa
flag, that's pretty helpful! Will you take care of closing this issue once the changelog got updated?
I've searched for the following keywords before opening this issue:
noqa
,S603
,S602
subprocess
Ruff in version
0.4.10
will not complain about the following snippet:However, when using
0.5.0
it will complain withMoving the
noqa
directive to the line wheresubprocess.run
is called will make it succeed:For completeness, below is the content of the full example file: