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-commit
Then, you should config the pre-commit hook as below.
pre-commit install
Then when you commit your change, your code will be automatically checked.