mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+ruff
This commit is contained in:
parent
9098f4daad
commit
4a234e7c0c
1 changed files with 24 additions and 0 deletions
24
projects/github.com/charliermarsh/ruff/package.yml
Normal file
24
projects/github.com/charliermarsh/ruff/package.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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: '*'
|
||||||
|
script: cargo install --locked --path ruff_cli --root {{prefix}}
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/ruff
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
ruff -e $FIXTURE | grep "F401 \`os\` imported but unused"
|
||||||
|
ruff --fix $FIXTURE
|
||||||
|
test ! -s $FIXTURE
|
||||||
|
fixture: |
|
||||||
|
import os
|
Loading…
Reference in a new issue