From 4a234e7c0cf24d939b7243efbd8c2d29348301bb Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 30 Jan 2023 17:59:17 -0500 Subject: [PATCH] +ruff --- .../github.com/charliermarsh/ruff/package.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 projects/github.com/charliermarsh/ruff/package.yml diff --git a/projects/github.com/charliermarsh/ruff/package.yml b/projects/github.com/charliermarsh/ruff/package.yml new file mode 100644 index 00000000..37e5fcda --- /dev/null +++ b/projects/github.com/charliermarsh/ruff/package.yml @@ -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