From 9cd8ba8663999212fcae1496bea7837689d2d20c Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Tue, 25 Jun 2024 11:28:11 +0200 Subject: [PATCH] move to upstream ruff image The other one was showing a not found, since we don't have bash in that image let's use the ruff binary directly for detection. Signed-off-by: Chmouel Boudjnah --- .tekton/linter.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.tekton/linter.yaml b/.tekton/linter.yaml index 7f861a073..19765783d 100644 --- a/.tekton/linter.yaml +++ b/.tekton/linter.yaml @@ -129,15 +129,14 @@ spec: workspaces: - name: source steps: - - name: ruff - image: salixtein/ruff + - name: ruff-lint + image: ghcr.io/astral-sh/ruff workingDir: $(workspaces.source.path) - script: | - set -euxo pipefail - echo "Linting Python files" - ruff check $(find . -type f -name '*.py') - echo "Checking Python files are formatted" - ruff format --check $(find . -type f -name '*.py') + args: ["check", "$(workspaces.source.path)"] + - name: ruff-format + image: ghcr.io/astral-sh/ruff + workingDir: $(workspaces.source.path) + args: ["format", "$(workspaces.source.path)", "--check"] workspaces: - name: source workspace: source