mirror of https://github.com/astral-sh/ruff
## Summary This PR adds a code action to remove unused ignore comments. This PR also includes some infrastructure boilerplate to set up code actions in the editor: * Extend `snapshot-diagnostics` to render fixes * Render fixes when using `--output-format=full` * Hook up edits and the code action request in the LSP * Add the `Unnecessary` tag to `unused-ignore-comment` diagnostics * Group multiple unused codes into a single diagnostic The same fix can be used on the CLI once we add `ty fix` Note: `unused-ignore-comment` is currently disabled by default. https://github.com/user-attachments/assets/f9e21087-3513-4156-85d7-a90b1a7a3489 |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| build.rs | ||
| mdtest.py | ||
| mdtest.py.lock | ||