mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
8409af5069
closes #4531
33 lines
667 B
YAML
33 lines
667 B
YAML
distributable:
|
|
url: https://github.com/astral-sh/ruff/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: astral-sh/ruff
|
|
strip: /^v /
|
|
|
|
build:
|
|
dependencies:
|
|
rust-lang.org: '>=1.60'
|
|
rust-lang.org/cargo: '*'
|
|
crates.io/semverator: '*'
|
|
script: |
|
|
if semverator lt {{version}} 0.0.242; then
|
|
CRATE=ruff_cli
|
|
else
|
|
CRATE=crates/ruff_cli
|
|
fi
|
|
cargo install --locked --path $CRATE --root {{prefix}}
|
|
|
|
renamed-to: astral.sh/ruff
|
|
|
|
# provides:
|
|
# - bin/ruff
|
|
|
|
test:
|
|
script: |
|
|
ruff -e $FIXTURE | grep "\`os\` imported but unused"
|
|
ruff --fix $FIXTURE
|
|
test ! -s $FIXTURE
|
|
fixture: |
|
|
import os
|