From c604437ec22b0260267624417fb501193ec40f84 Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Thu, 19 Dec 2024 12:54:45 +0100 Subject: [PATCH] Added ruff --- renovate.json | 11 +++++++++++ tools/ruff/Dockerfile.template | 20 ++++++++++++++++++++ tools/ruff/manifest.yaml | 24 ++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 tools/ruff/Dockerfile.template create mode 100644 tools/ruff/manifest.yaml diff --git a/renovate.json b/renovate.json index 1ae0071bca..53e61d1cb5 100644 --- a/renovate.json +++ b/renovate.json @@ -7709,6 +7709,17 @@ "version: \"?(?.*?)\"?\\n" ] }, + { + "customType": "regex", + "datasourceTemplate": "github-releases", + "depNameTemplate": "astral-sh/ruff", + "fileMatch": [ + "^tools/ruff/manifest.yaml$" + ], + "matchStrings": [ + "version: \"?(?.*?)\"?\\n" + ] + }, { "customType": "regex", "datasourceTemplate": "github-releases", diff --git a/tools/ruff/Dockerfile.template b/tools/ruff/Dockerfile.template new file mode 100644 index 0000000000..320028d9aa --- /dev/null +++ b/tools/ruff/Dockerfile.template @@ -0,0 +1,20 @@ +#syntax=docker/dockerfile:1.12.1@sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25 + +FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare +COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ + /etc/profile.d/ \ + /etc/profile.d/ +SHELL [ "bash", "-clo", "errexit" ] +ARG name +ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <