Contents

black 24.10.0

0

The uncompromising code formatter.

The uncompromising code formatter.

Stars: 38750, Watchers: 38750, Forks: 2433, Open Issues: 385

The psf/black repo was created 6 years ago and the last code push was Yesterday.
The project is extremely popular with a mindblowing 38750 github stars!

How to Install black

You can install black using pip

pip install black

or add it to a project with poetry

poetry add black

Package Details

Author
None
License
MIT
Homepage
None
PyPi:
https://pypi.org/project/black/
Documentation:
https://black.readthedocs.io/
GitHub Repo:
https://github.com/psf/black

Classifiers

  • Software Development/Libraries/Python Modules
  • Software Development/Quality Assurance
No  black  pypi packages just yet.

Errors

A list of common black errors.

Code Examples

Here are some black code examples and snippets.

  • black library internals

    This page is all about the black python library, the contents below is auto-generated by inspecting a python package’s code base.

GitHub Issues

The black package has 385 open issues on GitHub

  • Represent links to bad linecodes as clickable links (like flake8 does)
  • Black not respecting fluent interfaces with parenthesis
  • Allow newlines before parameter comments
  • Use parentheses on method access on float and int literals
  • Tab Support Request
  • Run tests with minimum versions of dependencies installed
  • reorganize release notes for 22.1.0
  • Pretty Terminal Output
  • Blank lines at top level code in stubs should be the same inside an if
  • Put blank lines between nested classes in typing stubs
  • Git Command on Vundle Install
  • Use parentheses with equality check in walrus/assignment statements
  • Replace CHANGES.md with something less prone to merge conflicts
  • Performance tracker: Backtracking Parser
  • Black is not idempotent with comment over line length

See more issues on GitHub