The best YAPF alternatives
The rest of Best Code Formatters, in this site's order: each with what it costs, where it runs and its record score.
Prettier suits developers and teams seeking consistent code formatting across supported languages and editors.
Black suits Python developers and teams who want a shared formatting style with limited configuration.
Rust developers who want consistent formatting in files, Cargo projects, or editor workflows may find rustfmt useful.
Spotless suits development teams that want automated formatting checks or fixes inside build workflows.
gofmt suits Go developers who want a command-line formatter or editor and version-control integrations.
CSharpier suits developers who want opinionated C# and XML formatting in projects, editors, builds, or CI pipelines.
PHP developers and teams can use PHP CS Fixer to apply or check coding-style rules in a self-hosted workflow.