In general, we adhere to Google Python style guide, and we recommend to use yapf to format your code.
In this project, we adopted pre-commit to automatic check the code style.
To begin with, you should follow the step below to install pre-commit.
pip install pre-commitThen, you should config the pre-commit hook as below.
pre-commit installThen when you commit your change, your code will be automatically checked.