black VS yapf

Compare black vs yapf and see what are their differences.

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
black yapf
204 9
27,262 12,525
2.1% 0.8%
9.5 8.3
6 days ago 24 days ago
Python Python
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

black

Posts with mentions or reviews of black. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-12.

yapf

Posts with mentions or reviews of yapf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-07.

What are some alternatives?

When comparing black and yapf you can also consider the following projects:

autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.

prettier - Prettier is an opinionated code formatter.

isort - A Python utility / library to sort imports.

Pylint - It's not just a linter that annoys you!

autoflake - Removes unused imports and unused variables as reported by pyflakes

mypy - Optional static typing for Python

awesome-python-typing - Collection of awesome Python types, stubs, plugins, and tools to work with them.

pycodestyle - Simple Python style checker in one Python file

flake8

bandit - Bandit is a tool designed to find common security issues in Python code.