Skip to content

Wuestengecko/pylsp-code-actions

Repository files navigation

PyLSP Code Actions

PyPI - Python Version Code QA workflow status

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

Installation

Run the following command in the same venv as the server itself:

pip install pylsp-code-actions

If you are using neovim and mason, use:

:PylspInstall pylsp-code-actions

(I use neovim too btw. I also use Arch btw.)

Contributing

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.

Licenses

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)

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages