2023-01-31 01:59:17 +03:00
|
|
|
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: '*'
|
2023-02-07 00:54:26 +03:00
|
|
|
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}}
|
2023-01-31 01:59:17 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/ruff
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
2023-02-04 05:04:29 +03:00
|
|
|
ruff -e $FIXTURE | grep "\`os\` imported but unused"
|
2023-01-31 01:59:17 +03:00
|
|
|
ruff --fix $FIXTURE
|
|
|
|
test ! -s $FIXTURE
|
|
|
|
fixture: |
|
|
|
|
import os
|