python-black

A code formatter written in, and written for Python

Black is a code formatter written in Python, and reformats Python 2.x and 3.x code. Black reformats entire files in place. It is not configurable. It does not take previous formatting into account. The coding style enforced is a PEP-8 subset, adheres to PEP-257, and otherwise passes the rules of the "pycodestyle" checker. Black skips over blocks that start and end with "# fmt: off" and "# fmt: on", respectively. It also recognizes YAPF's block comments to the same effect.

There is no official package available for openSUSE Leap 15.2

Distributions

openSUSE Tumbleweed

openSUSE Leap 15.2

SUSE SLE-15-SP2

SUSE SLE-15-SP1

Unsupported distributions

The following distributions are not officially supported. Use these packages at your own risk.