207
87% upvoted

Black

MaintainedMaintained

The uncompromising Python code formatter.

Tutorials / Guides

  • Black screenshot
  • Black screenshot
  • Black screenshot
  • Black screenshot

5 Alternatives for Black

-1

autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide. It uses the pycodestyle utility to determine what parts of the code needs to be formatted.

  • MaintainedMaintained
  • MaintainedPython
  • Maintainedcli
  • Maintainedformatter
  • 0% upvoted
-1

ciocheck

Linter, formatter and test suite helper. As a linter, it is a wrapper around pep8, pydocstyle, flake8, and pylint.

  • DeprecatedDeprecated
  • DeprecatedPython
  • Deprecatedcli
  • DeprecatedformatterDeprecatedmeta
  • 33% upvoted
0

mbake

mbake is a Makefile formatter and linter. It only took 50 years!

  • MaintainedMaintained
  • MaintainedPython
  • Maintainedcli
  • MaintainedlinterMaintainedformatter
  • 0% upvoted
6

unimport

A linter, formatter for finding and removing unused import statements.

  • MaintainedMaintained
  • MaintainedPython
  • Maintainedcli
  • MaintainedlinterMaintainedformatter
  • 80% upvoted
-1

yapf

A formatter for Python files created by Google YAPF follows a distinctive methodology, originating from the 'clang-format' tool created by Daniel Jasper. Essentially, the program reframes the code to the most suitable formatting that abides by the style guide, even if the original code already follows the style guide. This concept is similar to the Go programming language's 'gofmt' tool, which aims to put an end to debates about formatting by having the entire codebase of a project pass through YAPF whenever changes are made, thereby maintaining a consistent style throughout the project and eliminating the need to argue about style in every code review.

  • DeprecatedDeprecated
  • DeprecatedPython
  • Deprecatedcli
  • Deprecatedformatter
  • 0% upvoted

6 Multi-Language Tools

-3

autocorrect

A linter and formatter to help you to improve copywriting, correct spaces, words, punctuations between CJK (Chinese, Japanese, Korean).

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • MaintainedlinterMaintainedformatter
  • 0% upvoted
0

include-gardener

A multi-language static analyzer for C/C++/Obj-C/Python/Ruby to create a graph (in dot or graphml format) which shows all #include relations of a given set of files.

  • DeprecatedDeprecated
  • DeprecatedMulti-Language
  • Deprecatedcli
  • Deprecatedformatter
  • 0% upvoted