mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
30 lines
601 B
YAML
30 lines
601 B
YAML
|
distributable:
|
||
|
url: https://github.com/astral-sh/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: '*'
|
||
|
script:
|
||
|
- run: CRATE=ruff_cli
|
||
|
if: <0.0.242
|
||
|
- run: CRATE=crates/ruff_cli
|
||
|
if: '>=0.0.242'
|
||
|
- 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
|