Handy code actions for python-lsp-server
Project description
PyLSP Code Actions
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
370eb39eed68dc5786c7cb61bc0d91bda99f5bbbdeddf9400dc3ee70ab3af6c1
|
|
| MD5 |
2609346bba9e2404a1c5a4a4da816645
|
|
| BLAKE2b-256 |
04b9be9fbec47c52e4626a0134e733825d598612a8a317dff5a96c003d1aa141
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylsp_code_actions-0.1.dev6.tar.gz -
Subject digest:
370eb39eed68dc5786c7cb61bc0d91bda99f5bbbdeddf9400dc3ee70ab3af6c1 - Sigstore transparency entry: 259622374
- Sigstore integration time:
-
Permalink:
DSD-DBS/pylsp-code-actions@403ef67d2afe2ce277e07508b3dbda2e864d7941 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/DSD-DBS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
code-qa.yml@403ef67d2afe2ce277e07508b3dbda2e864d7941 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pylsp_code_actions-0.1.dev6-py3-none-any.whl.
File metadata
- Download URL: pylsp_code_actions-0.1.dev6-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7783bd5d531d04205b60ae230dfefb76f83f9a9728b3113b3f4b7d610ac5219b
|
|
| MD5 |
4672c91b1114cd99f0511c3cda43e1e6
|
|
| BLAKE2b-256 |
cdfab63753ae402233119c84e80e8273512adcd5f69d4a07fd25b2403faae177
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylsp_code_actions-0.1.dev6-py3-none-any.whl -
Subject digest:
7783bd5d531d04205b60ae230dfefb76f83f9a9728b3113b3f4b7d610ac5219b - Sigstore transparency entry: 259622380
- Sigstore integration time:
-
Permalink:
DSD-DBS/pylsp-code-actions@403ef67d2afe2ce277e07508b3dbda2e864d7941 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/DSD-DBS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
code-qa.yml@403ef67d2afe2ce277e07508b3dbda2e864d7941 -
Trigger Event:
push
-
Statement type: