devel/py-yapf 0.43.0p3 OpenBSD
formatter for Python code
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Last update
- Commit
3f059e808a- Categories
- devel, lang/python
Description
YAPF is a formatter based off of 'clang-format'. In essence, the algorithm takes the code and reformats it to the best formatting that conforms to the style guide, even if the original code didn't violate the style guide. If the whole codebase of a project is simply piped through YAPF whenever modifications are made, the style remains consistent throughout the project and there's no point arguing about style in every code review.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py-yapf | 0.43.0p3 |
| NetBSD | devel/py-yapf | 0.43.0nb1 |
Install
Binary package:
pkg_add py3-yapf
From the ports tree:
cd /usr/ports/devel/py-yapf && make install