Compare
| YAPF | Black | Ruff | autopep8 | |
|---|---|---|---|---|
| What it is | Configurable Python code formatter based on clang-format's algorithm | The uncompromising Python code formatter: one deterministic style, no configuration debates | An extremely fast Python linter and code formatter, written in Rust | Automatically reformats Python code to follow the PEP 8 style guide |
| Kind | Open source | Open source | Open source | Open source |
| Trust | 0.20 | 0.80 | 0.83 | 0.40 |
| Stars | 13987 | 42210 | 51403 | 4651 |
| Last commit | 2025-02-10 | 2026-11-20 | 2026-11-24 | 2026-07-06 |
| Licence | Apache-2.0 | MIT | MIT | MIT |
| Pricing | Free and open source | Free and open source | Free and open source | Free and open source |
| Free tier | Yes | Yes | Yes | Yes |
| Self-hostable | — | — | — | — |
| Ways to run it | — | — | — | — |
| SOC 2 | — | — | — | — |
| HIPAA | — | — | — | — |
| SSO | — | — | — | — |
| API | — | — | — | — |
| Plugins | — | — | — | — |
| MCP server | — | — | — | — |
| Company | Google public company (NASDAQ:GOOGL) | Python Software Foundation non-profit | Astral Series B | Hideo Hattori |
| Features |
|
|
|
|
| Limitations |
|
|