comparison .chezmoiscripts/run_onchange_after_41-install-language-servers.sh.tmpl @ 838:ae7f7cf6639b

chore: update ruff and ruff-lsp
author zegervdv <zegervdv@me.com>
date Fri, 02 Feb 2024 17:35:14 +0100
parents c06518e1a4d1
children 053b735696ba
comparison
equal deleted inserted replaced
837:c06518e1a4d1 838:ae7f7cf6639b
1 {{ if (or (eq .chezmoi.os "darwin") (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu"))) -}} 1 {{ if (or (eq .chezmoi.os "darwin") (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu"))) -}}
2 {{ $taplo_version := "0.8.1" -}} 2 {{ $taplo_version := "0.8.1" -}}
3 {{ $ruff_version := "0.1.7" -}} 3 {{ $pipx_pkgs := dict "ruff" "0.2.0"
4 {{ $ruff_lsp_version := "0.0.50" -}} 4 "ruff-lsp" "0.0.51"
5 {{ $pyright_version := "1.1.338" -}} 5 "pyright" "1.1.338" -}}
6 #!/usr/bin/env bash 6 #!/usr/bin/env bash
7 7
8 set -xe 8 set -xe
9 9
10 eval "$($HOME/bin/rtx activate bash)" 10 eval "$($HOME/bin/rtx activate bash)"
11 eval "$($HOME/bin/rtx hook-env)" 11 eval "$($HOME/bin/rtx hook-env)"
12 12
13 curl -fsSL https://github.com/tamasfe/taplo/releases/download/{{ $taplo_version }}/taplo-full-linux-x86_64.gz | gzip -d - | sudo install -m 755 /dev/stdin /usr/local/bin/taplo 13 curl -fsSL https://github.com/tamasfe/taplo/releases/download/{{ $taplo_version }}/taplo-full-linux-x86_64.gz | gzip -d - | sudo install -m 755 /dev/stdin /usr/local/bin/taplo
14 14
15 pipx install "ruff=={{ $ruff_version }}" 15 {{ range keys $pipx_pkgs }}
16 pipx install "ruff-lsp=={{ $ruff_lsp_version }}" 16 pipx install --force "{{ . }}=={{ get $pipx_pkgs . }}"
17 pipx install "pyright=={{ $pyright_version }}" 17 {{ end }}
18 18
19 npm install -g "@ansible/ansible-language-server" 19 npm install -g "@ansible/ansible-language-server"
20 npm install -g "vscode-langservers-extracted" 20 npm install -g "vscode-langservers-extracted"
21 21
22 {{ end }} 22 {{ end }}