Which code formatter do you use?

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • yapf

    A formatter for Python files

  • YAPF. Black would have been fine too but I absolutely need tabs, not spaces, and Black won't do that. (Why tabs? Because they make my proportional font work better.)

  • codespell

    check code for common misspellings

  • This plus codespell. Because we’d look like kindergartners otherwise.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • blue

    The slightly less uncompromising Python code formatter.

  • I use blue - a fork of black. I set the line lengths (much) longer.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts