What does it do?#

Runs Python and common formatting, linting, type-checking and security-scanning tools inside Docker containers — no local Python install required.

Commands#

Commands you can run to use this.

Aliases#

AliasToolImage
python-dockerPython REPL / scriptspython:alpine
pip-dockerpip package managerpython:alpine
python-bash-dockerInteractive shell in Python containerpython:alpine
black-dockerBlack code formatterpyfound/black:latest_release
flake8-dockerFlake8 style/lint checker (PEP 8)alpine/flake8:latest
pylint-dockerPylint static analysiscytopia/pylint:latest
mypy-dockerMypy static type checkercytopia/mypy:latest
bandit-dockerBandit security lintercytopia/bandit:latest

Usage#

# Run a Python script
python-docker script.py

# Install dependencies
pip-docker install -r requirements.txt

# Format code with Black
black-docker .

# Lint with Flake8 / Pylint
flake8-docker .
pylint-docker mypackage/

# Type-check with Mypy
mypy-docker mypackage/

# Scan for security issues with Bandit
bandit-docker -r mypackage/

Note: python-bash-docker drops you into /bin/sh, not bash — the python:alpine image doesn’t ship Bash. black-docker intentionally uses the tag pyfound/black:latest_release (not :latest), which is the official Black image’s published “latest stable release” tag.

PowerShell caveat: python/docker-python-devtools.ps1 now exists and is auto-sourced by docker-devtools.ps1, but it’s not quite full parity yet — ruff-docker and poetry-docker have no PowerShell equivalent. Everything else (python-docker, pip-docker, python-bash-docker, black-docker, flake8-docker, pylint-docker, mypy-docker, bandit-docker) works the same in both shells. See the PowerShell page for the full platform-parity breakdown.

The Sources#

GitHub: https://github.com/willhallonline/docker-devtools-aliases

Find out more#