-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary Fixes #10594. Code actions to disable a diagnostic via `noqa` comment are now available. https://github.com/astral-sh/ruff/assets/19577865/6d3bcf11-a9d9-499b-8c7f-a10cd39cfbba `DiagnosticFix` has been changed so that `noqa` code actions appear even for diagnostics with no available quick fix. It can contain quick fix edits, `noqa` comment edits, or both. ## Test Plan The scenarios that need to be tested are as follows: * A code action to disable a diagnostic should be available for every diagnostic. * Using this code action should append to the appropriate line with the diagnostic, or modify an existing `noqa` comment. * Adding a `noqa` comment manually should make a diagnostic disappear * `Fix all auto-fixable problems` should not add `noqa` comments * Removing a code from a `noqa` comment should make the diagnostic re-appear
- Loading branch information
1 parent
4b330b1
commit d7f093e
Showing
3 changed files
with
126 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters