Pyink Python Formatter

25.12.0 · active · verified Thu Apr 16

Pyink is a Python code formatter, forked from Black, that offers slightly different formatting behaviors compared to upstream Black. It is actively maintained and regularly rebased on the latest Black releases to serve as an adoption helper for large monorepos with specific formatting requirements. The current stable version is 25.12.0.

Common errors

Warnings

Install

Quickstart

Pyink is primarily a command-line interface tool. To use it, simply invoke `pyink` followed by the file or directory you wish to format. All Black command-line options are supported, in addition to Pyink-specific options.

# To format a single file:
pyink my_python_script.py

# To format all Python files in the current directory and subdirectories:
pyink .

# To check for formatting issues without applying changes:
pyink --check --diff .

view raw JSON →