Handy code actions for python-lsp-server
This is a plugin for python-lsp-server which adds a few handy code actions
that I always missed:
- Flip comma or other operand
- Sort keyword arguments by name
- Order keyword arguments as in the called function
- Sort dict literal by keys
- Generate docstring for function/method
- Add / Remove
Annotated[...]around a type annotation
Run the following command in the same venv as the server itself:
pip install pylsp-code-actionsIf you are using neovim and mason, use:
:PylspInstall pylsp-code-actions(I use neovim too btw. I also use Arch btw.)
We'd love to see your bug reports and improvement suggestions! Please take a look at our guidelines for contributors for details. It also contains a short guide on how to set up a local development environment.
This project is compliant with the REUSE Specification Version 3.0.
Copyright DB InfraGO AG, licensed under Apache 2.0 (see full text in LICENSES/Apache-2.0.txt)
Dot-files are licensed under CC0-1.0 (see full text in LICENSES/CC0-1.0.txt)