{"repo":"google/yapf","free":true,"listed":false,"github":"https://github.com/google/yapf","clone":"git clone https://github.com/google/yapf.git","description":"A formatter for Python files","language":"Python","stars":13979,"topics":["python","formatter","google"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"YAPF Introduction YAPF is a Python formatter based on clang-format (developed by Daniel Jasper). In essence, the algorithm takes the code and calculates the best formatting that conforms to the configured style. It takes away a lot of the drudgery of maintaining your code. The ultimate goal is that the code YAPF produces is as good as the code that a programmer would write if they were following the style guide. Note YAPF is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google. Installation To install YAPF from PyPI: YAPF is still considered in \"beta\" stage, and the released version may change often; therefore, the best way to keep up-to-date with the latest development is to clone this repository or install directly from github: Note that if you intend to use YAPF as a command-line tool rather than as a library, installation is not necessary. YAPF supports being run as a directory by the Python interpreter. If you cloned/unzipped YAPF into DIR , it's possible to run: Using YAPF within your favorite editor YAPF is supported by multiple editors via community extensions or plugins. See Editor Support for more info. Required Python versions YAPF supports Python 3.7+. Usage Return Codes Normally YAPF returns zero on successful program termination and non-zero otherwise. If --diff is supplied, YAPF returns zero when no changes were necessary, non-zero otherwise (including program error). You can use this in a CI workflow to","default_branch":null,"files":null,"tree":[],"storefront":"/r/google","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/google/yapf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}