-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
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
# noqaExecute command: ruff check
Version
ruff 0.11.2 (4773878 2025-03-21)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule