ruff: update to 0.5.5, add completions
This commit is contained in:
parent
2e1e978ee0
commit
c600ecbf49
1 changed files with 7 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'ruff'
|
# Template file for 'ruff'
|
||||||
pkgname=ruff
|
pkgname=ruff
|
||||||
version=0.5.4
|
version=0.5.5
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
build_helper="rust"
|
build_helper="rust qemu"
|
||||||
hostmakedepends="maturin cargo"
|
hostmakedepends="maturin cargo"
|
||||||
makedepends="rust-std"
|
makedepends="rust-std"
|
||||||
short_desc="Fast Python linter and code formatter"
|
short_desc="Fast Python linter and code formatter"
|
||||||
|
@ -12,8 +12,12 @@ license="MIT"
|
||||||
homepage="https://docs.astral.sh/ruff/"
|
homepage="https://docs.astral.sh/ruff/"
|
||||||
changelog="https://raw.githubusercontent.com/astral-sh/ruff/main/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/astral-sh/ruff/main/CHANGELOG.md"
|
||||||
distfiles="https://github.com/astral-sh/ruff/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/astral-sh/ruff/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=562203b8d79585214a47104a37285758e38fa50def570dae685176298dc70066
|
checksum=b0f710015cc27c58f3b7236d493f62d4141efaa37b49abdbd79f21c63d58ab41
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue