From c600ecbf49c5d2d68cf37a8f67ff7161683efc9f Mon Sep 17 00:00:00 2001 From: meator Date: Sun, 28 Jul 2024 13:06:09 +0200 Subject: [PATCH] ruff: update to 0.5.5, add completions --- srcpkgs/ruff/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/ruff/template b/srcpkgs/ruff/template index 6e6451cd277..7d2de1b8ae7 100644 --- a/srcpkgs/ruff/template +++ b/srcpkgs/ruff/template @@ -1,9 +1,9 @@ # Template file for 'ruff' pkgname=ruff -version=0.5.4 +version=0.5.5 revision=1 build_style=python3-pep517 -build_helper="rust" +build_helper="rust qemu" hostmakedepends="maturin cargo" makedepends="rust-std" short_desc="Fast Python linter and code formatter" @@ -12,8 +12,12 @@ license="MIT" homepage="https://docs.astral.sh/ruff/" changelog="https://raw.githubusercontent.com/astral-sh/ruff/main/CHANGELOG.md" distfiles="https://github.com/astral-sh/ruff/archive/refs/tags/${version}.tar.gz" -checksum=562203b8d79585214a47104a37285758e38fa50def570dae685176298dc70066 +checksum=b0f710015cc27c58f3b7236d493f62d4141efaa37b49abdbd79f21c63d58ab41 post_install() { vlicense LICENSE + for shell in bash fish zsh; do + vtargetrun "$DESTDIR"/usr/bin/ruff generate-shell-completion $shell > ruff.$shell + vcompletion ruff.$shell $shell + done }