Sign inSign up

fmariluis/black

By fmariluis

Updated over 3 years ago

Multiarch Docker image that runs the latest Black (Python formatter) version

Image
0

2.0K

fmariluis/black repository overview

Source for the fmariluis/black multiarch Docker image

https://github.com/fmariluis/docker-python-black

(Repo forked from https://github.com/mccutchen/docker-python-black to provide multi arch images)

A minimal multiarch Docker image for running Python's black code formatter, useful in CI pipelines or other situations where avoiding local Python/virtualenv/etc installation is ideal.

Usage

An example CI step that will exit non-zero if any source code under the current directory needs to be formatted:

docker run --rm -v $(pwd):/src fmariluis/black --check --diff /src

Prior Art

There are at least a handful of existing, public docker images that serve the same purpose as this one, but I wanted an image that a) explicitly tracked black releases and b) published its Dockerfile.

Here are some other public images to consider:

Tag summary

Content type

Image

Digest

sha256:14f8b6ea1

Size

23.3 MB

Last updated

over 3 years ago

docker pull fmariluis/black