Summary
Rule RUF100 (unused no-qa) does not catch unused directives when specified as # ruff: noqa or # ruff: noqa: {code}.
See playground for a simplification of the working example of the following three files:
# ruff.toml
[lint]
select = [ "RUF" ]
# example_missed.py
# ruff: noqa
# example_caught.py
# noqa
Execute command: ruff check
Version
ruff 0.11.2 (4773878 2025-03-21)
Summary
Rule RUF100 (unused no-qa) does not catch unused directives when specified as
# ruff: noqaor# ruff: noqa: {code}.See playground for a simplification of the working example of the following three files:
Execute command:
ruff checkVersion
ruff 0.11.2 (4773878 2025-03-21)