Skip to main content

Handy code actions for python-lsp-server

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylsp_code_actions-0.1.dev6.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylsp_code_actions-0.1.dev6-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pylsp_code_actions-0.1.dev6.tar.gz.

File metadata

  • Download URL: pylsp_code_actions-0.1.dev6.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pylsp_code_actions-0.1.dev6.tar.gz
Algorithm Hash digest
SHA256 370eb39eed68dc5786c7cb61bc0d91bda99f5bbbdeddf9400dc3ee70ab3af6c1
MD5 2609346bba9e2404a1c5a4a4da816645
BLAKE2b-256 04b9be9fbec47c52e4626a0134e733825d598612a8a317dff5a96c003d1aa141

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylsp_code_actions-0.1.dev6.tar.gz:

Publisher: code-qa.yml on DSD-DBS/pylsp-code-actions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylsp_code_actions-0.1.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for pylsp_code_actions-0.1.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 7783bd5d531d04205b60ae230dfefb76f83f9a9728b3113b3f4b7d610ac5219b
MD5 4672c91b1114cd99f0511c3cda43e1e6
BLAKE2b-256 cdfab63753ae402233119c84e80e8273512adcd5f69d4a07fd25b2403faae177

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylsp_code_actions-0.1.dev6-py3-none-any.whl:

Publisher: code-qa.yml on DSD-DBS/pylsp-code-actions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page