google/yapf
A formatter for Python files observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4186
- days_rel: n/a
- days_push: 12
- n_releases_24m: 0
Adoption not part of the score
13980 stars · 902 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
YAPF is a Python code formatter from Google, inspired by clang-format, that reformats code to conform to a configurable style guide. It can be used as a command-line tool or as a library, and integrates with editors via community plugins.
Use cases
- format python code automatically
- enforce a consistent code style across a python project
- reformat python files in place or show a diff
- run a formatter in pre-commit hooks
- format only a range of lines in a python file
When to choose
- you want highly configurable formatting that aims to match what a careful programmer would write
- you prefer clang-format-style formatting for Python
- you need a formatter usable both as a CLI and a library
When to avoid
- you want the de facto community standard with minimal configuration (Black)
- you need a formatter for languages other than Python
Facets
cli-tool · maturity active
formatter cli developer-tools developer-tools programming-languages python cli cross-platform code-style clang-format-inspired pre-commit pep8 python
2 sources
- readme: https://github.com/google/yapf · fetched 2026-08-28 · 56c76b5e65f5
- registry_pypi: https://pypi.org/pypi/yapf/json · fetched 2026-08-29 · 109e5bc57fbc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/yapf | main | 76 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem