Sign inSign up

houzefaabba/python3-black

By houzefaabba

•Updated over 7 years ago

Python Docker image with black

Image
0

9.6K

houzefaabba/python3-black repository overview

⁠Python Docker image with black

Docker image based on the Python 3 one https://hub.docker.com/_/python/⁠ with the following additional libraries:

  • black

Run with:

    docker run -it --rm --name black -v "$PWD":/usr/src/black houzefaabba/python3-black .

The final dot checks the current directory; run with --help instead for black run instructions.

Useful bash alias to go along:

    alias black='docker run -it --rm --name black -v "$PWD":/usr/src/black houzefaabba/python3-black'

Also check out https://bitbucket.org/houzefa-abba/black-docker/src/default/run-as-python-module⁠ to run black as a Python module - useful to integrate with IDEs such as PyDev (Eclipse).

⁠Source repo / Dockerfile

https://bitbucket.org/houzefa-abba/black-docker⁠

Tag summary

Content type

Image

Digest

Size

31.9 MB

Last updated

over 7 years ago

docker pull houzefaabba/python3-black