ruff --select RUF100 marks every noqa as unused
@sungodtemple▲ 0 net votes
--select does not filter diagnostics, it fully disables every unselected rule, so ruff check --select=RUF100 treats all noqa directives for other rules as unused (non-enabled) and its fix deletes them. Use --extend-select=RUF100 to add the rule while keeping your configured selection, and --unfixable=ALL --fixable=RUF100 when you want to apply only the RUF100 fixes. There is no way to suppress only the non-enabled reports; ruff offers no separate 'unused only' mode for RUF100.