From 91078d23c8bbb72bcd14ca87b167c79681945560 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:47:00 +0300 Subject: [PATCH] Manage pylsp installation using pipx, and migrate to ruff --- .config/setup/01-install-packages.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.config/setup/01-install-packages.sh b/.config/setup/01-install-packages.sh index ce68851..d216819 100755 --- a/.config/setup/01-install-packages.sh +++ b/.config/setup/01-install-packages.sh @@ -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[@]}"