How to Install and Uninstall python2-yapf Package on openSUSE Leap

Last updated: May 10,2024

1. Install "python2-yapf" package

Please follow the guidelines below to install python2-yapf on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python2-yapf

2. Uninstall "python2-yapf" package

This is a short guide on how to uninstall python2-yapf on openSUSE Leap:

$ sudo zypper remove python2-yapf

3. Information about the python2-yapf package on openSUSE Leap

Information for package python2-yapf:
-------------------------------------
Repository : Main Repository
Name : python2-yapf
Version : 0.29.0-bp153.1.15
Arch : noarch
Vendor : openSUSE
Installed Size : 686,8 KiB
Installed : No
Status : not installed
Source package : python-yapf-0.29.0-bp153.1.15.src
Summary : A formatter for Python code
Description :
YAPF is based off clang-format and reformats it to the closest
formatting that conforms to the style guide, even if the original
code did not violate the style guide.
This is in contrast to other formatters like autopep8 and pep8ify
which are made to only remove lint errors from code, which has some
limitations, like, code that conforms to the PEP 8 guidelines may not
be reformatted.