mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
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:
@@ -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" | \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user