..
Code Quality
Code Quality
Coding style
- Be consistent in the style
- Coding standard
- Static code analysis
- Pylint is integrated into Visual Code
- Find guidance here.
Testing
- Unit test and system test
- Unit test is efficient
- System test is thorough
- Test tools
- Unit test for Python
- https://docs.python.org/3/library/unittest.html
- https://docs.python.org/3/library/unittest.mock.htmlP
- Unit test for Python
Pull Request (PR)
You can find detail guidance (https://google.github.io/eng-practices/). We summarize three items in the following.
- Submit a complete PR (Tested code with tests)
- Clear description (“Fix bug” is an inadequate CL description. What bug? What did you do to fix it? )
- One PR one task
- Examples: