Skip to content

Commit

Permalink
Added ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 19, 2024
1 parent b0b9be8 commit c604437
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7709,6 +7709,17 @@
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "astral-sh/ruff",
"fileMatch": [
"^tools/ruff/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
20 changes: 20 additions & 0 deletions tools/ruff/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -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 <<EOF
url="https://github.com/astral-sh/ruff/releases/download/${version}/ruff-${arch}-unknown-linux-musl.tar.gz"
filename="$( basename "${url}" )"

check-github-release-asset "astral-sh/ruff" "${version}" "${filename}"
curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \
"${url}"

tar --file="${uniget_cache_download}/${filename}" --list
tar --file="${uniget_cache_download}/${filename}" --extract --gzip --directory="${prefix}/bin" --strip-components=1 --no-same-owner
EOF
24 changes: 24 additions & 0 deletions tools/ruff/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: ruff
license:
name: MIT License
link: https://github.com/astral-sh/ruff/blob/main/LICENSE
version: "0.8.3"
check: ""
platforms:
- linux/amd64
- linux/arm64
tags:
- category/development
- lang/rust
- type/cli
- lint
- python
homepage: https://docs.astral.sh/ruff
repository: https://github.com/astral-sh/ruff
description: Extremely fast Python linter and code formatter
renovate:
datasource: github-releases
package: astral-sh/ruff
priority: low

0 comments on commit c604437

Please sign in to comment.