Manage pylsp installation using pipx, and migrate to ruff
This commit is contained in:
parent
6da3845c0b
commit
91078d23c8
1 changed files with 11 additions and 4 deletions
|
|
@ -51,10 +51,6 @@ DEB_PKGS=(
|
|||
pre-commit
|
||||
pulseaudio-utils
|
||||
python3-poetry
|
||||
python3-pylsp-black
|
||||
python3-pylsp-isort
|
||||
python3-pylsp-mypy
|
||||
python3-pylsp-rope
|
||||
qtwayland5
|
||||
rclone
|
||||
reuse
|
||||
|
|
@ -95,6 +91,7 @@ META_PKGS=(
|
|||
|
||||
PIPX_PKGS=(
|
||||
# keep-sorted start
|
||||
python-lsp-server
|
||||
rshell
|
||||
# keep-sorted end
|
||||
)
|
||||
|
|
@ -105,3 +102,13 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends --yes "
|
|||
if (( "${#PIPX_PKGS[@]}" != 0 )); then
|
||||
pipx install "${PIPX_PKGS[@]}"
|
||||
fi
|
||||
|
||||
PYLSP_PLUGINS=(
|
||||
# keep-sorted start
|
||||
pylsp-mypy
|
||||
pylsp-rope
|
||||
python-lsp-ruff
|
||||
# keep-sorted end
|
||||
)
|
||||
|
||||
pipx inject python-lsp-server "${PYLSP_PLUGINS[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue