Python Code Formatters

Open-source Python projects categorized as Code Formatters

Top 3 Python Code Formatter Projects

Code Formatters
  1. black

    The uncompromising Python code formatter

    Project mention: Nix-Powered Python Development | dev.to | 2025-05-07

    These requirements are not too uncommon. I have seen many projects with similar setup, with alternatives such as tox instead of nox, or black and pylint instead of ruff, etc.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. yapf

    A formatter for Python files

    Project mention: YouTube asks channel owner to verify phone, permanently overwrites personal info | news.ycombinator.com | 2025-02-17

    I think they mean that just because code is under github.com/google, it doesn't make it an "official" Google thing.

    For example, yapf[0] is under the Google Github org but has the disclaimer:

    >Note YAPF is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

    libphonenumber doesn't have any similar disclaimer and does seem to be an "official" Google product, but it's hard to tell what Google considers official or not.

    [0] https://github.com/google/yapf

  4. isort

    A Python utility / library to sort imports.

    Project mention: Nix Flake Templates | dev.to | 2025-05-05

    Use black and isort for formatting.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Code Formatters discussion

Log in or Post with

Python Code Formatters related posts

  • Ruff and Ready: Linting Before the Party

    5 projects | dev.to | 2 May 2025
  • Amazing `pre-commit` and How To Use It

    3 projects | dev.to | 26 Feb 2025
  • YouTube asks channel owner to verify phone, permanently overwrites personal info

    1 project | news.ycombinator.com | 17 Feb 2025
  • Enhancing Code Quality: Adding Formatters and Linters to Code-Formatter-Advisor

    1 project | dev.to | 1 Nov 2024
  • Black – The uncompromising Python code formatter

    1 project | news.ycombinator.com | 11 Oct 2024
  • GitHub Is Down?

    1 project | news.ycombinator.com | 14 Aug 2024
  • Black: The uncompromising Python code formatter

    1 project | news.ycombinator.com | 21 Jul 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 20 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Code Formatter projects in Python? This list will help you:

# Project Stars
1 black 40,227
2 yapf 13,890
3 isort 6,725

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?