Installation

  • pip install black

  • black --check ./: check what will need formatting

  • black --diff ./: view changes without applying

  • configuration file: pyproject.

[tool.black]
line-length = 100
py36 = true

Last updated