Frontend Frameworks

yapf

Yet another Python code formatter from Google.

Status
UnmaintainedNo commits in 561 days.
Last checked
Aging · Aug 23, 2026
License
Open source
Pricing
Free tier · from $0

What it is

yapf is a tool that reformats your Python code to improve readability and consistency. It automatically applies PEP8 guidelines, making it easier for developers to maintain clean and consistent codebases.

yapf stands out as a powerful, open-source tool specifically designed to format Python code according to PEP8 guidelines, offering customization options through style files.

When it fits — and when it doesn’t

A good fit for

  • Python developers who need to maintain a consistent and readable codebase.

  • Teams working on large Python projects where style consistency is crucial.

  • Projects that require adherence to PEP8 guidelines for code formatting.

Look elsewhere if

  • Developers looking for real-time code suggestions or linting features.

  • Projects requiring integration with non-Python languages.

Known weaknesses

Each one links to the public issue, changelog or docs page it came from, where we have one.

  1. 01

    Limited customization options beyond PEP8

    yapf's configuration is limited to a few style options, which may not cover all team-specific formatting needs.

  2. 02

    Can produce unexpected results with complex code structures

    yapf might not handle certain complex Python constructs optimally, leading to suboptimal or confusing formatting in edge cases.

  3. 03

    Does not integrate well with all IDEs out-of-the-box

    Some popular IDEs may require additional plugins or manual configuration to work seamlessly with yapf.

What it does well

  • Automatically formats Python code to improve readability and consistency.

  • Supports PEP8 guidelines for code formatting.

  • Can be configured with a style file for custom formatting rules.

Pricing

Free tier
YesOpen source — free to use
Paid from
$0
Model
Flat rate
Enterprise plan
No

Pricing not independently confirmed — check the vendor’s page.

Performance benchmarks

How Fast Is It?

Set up yapf

Setup steps, common gotchas and what to check after 30 days.

Open the setup guide →