You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update unsafe code actions to contain `(unsafe)` at the end of the
message
- Prevent the `Fix All` code action from applying unsafe codeactions
- Update the README to mention this behaviour
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,12 @@ lspconfig.pylsp.setup {
50
50
}
51
51
```
52
52
53
+
## Code actions
54
+
55
+
`python-lsp-ruff` supports code actions as given by possible fixes by `ruff`. `python-lsp-ruff` also supports [unsafe fixes](https://docs.astral.sh/ruff/linter/#fix-safety).
56
+
Fixes considered unsafe by `ruff` are marked `(unsafe)` in the code action.
57
+
The `Fix all` code action *only* consideres safe fixes.
58
+
53
59
## Configuration
54
60
55
61
Configuration options can be passed to the python-language-server. If a `pyproject.toml`
0 commit comments