This commit is contained in:
Jacob Heider 2023-01-30 17:59:17 -05:00 committed by Jacob Heider
parent 9098f4daad
commit 4a234e7c0c

View 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