From 4ebca976c7c5522638f8645c0050057a6d8935c0 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 11 Jan 2024 22:46:46 -0500 Subject: [PATCH] fix(ruff) closes #4815 closes #4816 --- projects/astral.sh/ruff/package.yml | 2 ++ projects/github.com/charliermarsh/ruff/package.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/astral.sh/ruff/package.yml b/projects/astral.sh/ruff/package.yml index 94c30f13..11737062 100644 --- a/projects/astral.sh/ruff/package.yml +++ b/projects/astral.sh/ruff/package.yml @@ -22,6 +22,8 @@ provides: test: script: + - run: mkdir -p .ruff_cache/{{version}} + if: '>=0.1.12' - ruff -e $FIXTURE | grep "\`os\` imported but unused" - ruff --fix $FIXTURE - test ! -s $FIXTURE diff --git a/projects/github.com/charliermarsh/ruff/package.yml b/projects/github.com/charliermarsh/ruff/package.yml index 9d205aba..da22ac05 100644 --- a/projects/github.com/charliermarsh/ruff/package.yml +++ b/projects/github.com/charliermarsh/ruff/package.yml @@ -25,9 +25,11 @@ renamed-to: astral.sh/ruff # - bin/ruff test: - script: | - ruff -e $FIXTURE | grep "\`os\` imported but unused" - ruff --fix $FIXTURE - test ! -s $FIXTURE + script: + - run: mkdir -p .ruff_cache/{{version}} + if: '>=0.1.12' + - ruff -e $FIXTURE | grep "\`os\` imported but unused" + - ruff --fix $FIXTURE + - test ! -s $FIXTURE fixture: | import os