lint: switch to ruff for formatting and linting

- use dedicated ruff.toml for configuration
- download via docker image layer at build time
This commit is contained in:
will
2026-02-04 10:45:24 +00:00
parent a53b81ce4e
commit 5f4d3383da
4 changed files with 47 additions and 49 deletions

View File

@@ -32,8 +32,7 @@ python3 --version
uv pip install --python /python_env \
lief==0.17.5 \
mypy==1.19.1 \
pyzmq==27.1.0 \
ruff==0.15.5
pyzmq==27.1.0
SHELLCHECK_VERSION=v0.11.0
curl --fail -L "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.$(uname --machine).tar.xz" | \

View File

@@ -6,9 +6,11 @@
FROM mirror.gcr.io/ubuntu:24.04
# Pin uv to minor version to avoid breaking changes:
# Pin uv and ruff to minor version to avoid breaking changes
# https://docs.astral.sh/uv/reference/policies/versioning/
# https://docs.astral.sh/ruff/versioning/
COPY --from=ghcr.io/astral-sh/uv:0.10 /uv /uvx /bin/
COPY --from=ghcr.io/astral-sh/ruff:0.15 /ruff /bin/
COPY ./ci/retry/retry /ci_retry
COPY ./.python-version /.python-version