ruff — fast Python linter and formatter rebased on Red Hat Hardened Images
1.4K
ruff is an extremely fast Python linter and formatter written in Rust. It implements rules from flake8, isort, pyupgrade, and many other tools in a single binary, and includes a formatter compatible with Black. Ruff distributes as a Python wheel containing a compiled native binary — no Python runtime overhead at lint time.
This image installs ruff from its manylinux wheel against Python 3.13 RHHI layers. The built image is cosign-signed with a CycloneDX SBOM and SLSA Level 3 provenance attestation attached.
# Check a Python file or directory
podman run --rm -v "$(pwd):/work:ro,Z" ruff:<version>-rhhi check /work
# Format check (non-destructive)
podman run --rm -v "$(pwd):/work:ro,Z" ruff:<version>-rhhi format --check /work
# JSON output for machine parsing
podman run --rm -v "$(pwd):/work:ro,Z" ruff:<version>-rhhi check --output-format json /work
registry.access.redhat.com/hi/python:3.13-builder (build) and
hi/python:3.13 (runtime) — Red Hat HardenedContent type
Image
Digest
sha256:3a17e3ab6…
Size
47.6 MB
Last updated
4 months ago
docker pull timothyswan/ruff:0.15.13-rhhi