Manage pylsp installation using pipx, and migrate to ruff

This commit is contained in:
Ohad Livne 2025-06-04 22:47:00 +03:00
parent 6da3845c0b
commit 91078d23c8
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -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[@]}"