mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 09:55:06 +03:00
dae51d2038
resolves https://github.com/teaxyz/pantry.core/issues/278 resolves https://github.com/teaxyz/pantry.core/issues/277
32 lines
702 B
YAML
32 lines
702 B
YAML
distributable:
|
|
url: https://github.com/charliermarsh/ruff/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: charliermarsh/ruff
|
|
strip: /^v /
|
|
|
|
build:
|
|
dependencies:
|
|
rust-lang.org: '>=1.60'
|
|
rust-lang.org/cargo: '*'
|
|
crates.io/semverator: '*'
|
|
tea.xyz/gx/make: '*' #build.rs uses make since 0.0.246
|
|
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}}
|
|
|
|
provides:
|
|
- bin/ruff
|
|
|
|
test:
|
|
script: |
|
|
ruff -e $FIXTURE | grep "\`os\` imported but unused"
|
|
ruff --fix $FIXTURE
|
|
test ! -s $FIXTURE
|
|
fixture: |
|
|
import os
|