Skip to content

Commit

Permalink
move to upstream ruff image
Browse files Browse the repository at this point in the history
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 <chmouel@redhat.com>
  • Loading branch information
chmouel committed Jun 25, 2024
1 parent dc5b23e commit 9cd8ba8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .tekton/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cd8ba8

Please sign in to comment.