Skip to content

Commit cce78bb

Browse files
zakiskchmouel
authored andcommitted
fix: use python image to install ruff
Signed-off-by: Zaki Shaikh <[email protected]>
1 parent a1d7e4e commit cce78bb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.tekton/linter.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,21 @@ spec:
218218
219219
- name: ruff-lint
220220
displayName: "Python Linter (ruff)"
221-
image: ghcr.io/astral-sh/ruff
221+
image: registry.access.redhat.com/ubi9/python-312
222222
workingDir: $(workspaces.source.path)
223-
args: ["check", "$(workspaces.source.path)"]
223+
script: |
224+
set -euxo pipefail
225+
pip3 install ruff
226+
ruff check .
224227
225228
- name: ruff-format
226229
displayName: "Python Formatter (ruff)"
227-
image: ghcr.io/astral-sh/ruff
230+
image: registry.access.redhat.com/ubi9/python-312
228231
workingDir: $(workspaces.source.path)
229-
args: ["format", "$(workspaces.source.path)", "--check"]
232+
script: |
233+
set -euxo pipefail
234+
pip3 install ruff
235+
ruff format . --check
230236
231237
- name: markdownlint
232238
displayName: "Markdown Linter"

0 commit comments

Comments
 (0)