google/yapf

A formatter for Python files

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 59 minutes ago
Added to GitGenius on September 4th, 2026
Created on March 18th, 2015
Open Issues & Pull Requests: 419 (+0)
GitHub issues: Enabled
Number of forks: 904
Total Stargazers: 13,985 (+0)
Total Subscribers: 197 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 36.9 days
Mean response time: 196.1 days
90th percentile: 596.0 days
Tracked items: 38

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 3% of issues opened in the past year have been closed. Three people close 50% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 34
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 993 days
Stale 30+ days: 31
Stale 90+ days: 27

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (1)

Most active issues this week

Detailed Description

YAPF is a Python code formatter that automatically reformats Python files to conform to a configured style guide.

YAPF addresses the problem of maintaining consistent code formatting across a project by algorithmically determining the best formatting that adheres to style rules, rather than requiring manual formatting effort. The tool is based on the clang-format algorithm and aims to produce code as good as what a programmer would write while following a style guide. It can be run as a command-line tool, integrated into editors through community extensions, or used as a library in other Python programs.

Teams should adopt YAPF if they want to enforce consistent formatting without manual intervention and are willing to configure style rules upfront. The tool suits projects of any size that benefit from automated formatting. YAPF supports multiple predefined styles including PEP 8 and Google style, and allows fine-grained customization through configuration files or command-line arguments. It integrates with CI workflows through its diff mode, which returns non-zero exit codes when formatting changes are needed, enabling automated checks that code meets formatting standards. The tool supports excluding files via .yapfignore or pyproject.toml configuration, and works with Python 3.7 and later.

The project maintains active continuous integration workflows covering standard testing and pre-commit hook scenarios. Coverage tracking is integrated into the development process. The tool is distributed through standard Python package management channels and can be run directly from a cloned repository without installation, providing flexibility in deployment approaches.