Skip to content

Code style

Jaeyoun Kim edited this page May 18, 2021 · 6 revisions

Python coding style

Changes to Python code should conform to Google Python Style Guide

Use pylint to check your Python changes. Download a pylint configuration file available from TensorFlow.

To install pylint and check a file with pylint against TensorFlow's custom style definition:

Please use Pylint version 2.4.4.

pip install pylint==2.4.4
pylint --rcfile=pylintrc myfile.py

Coding style for other languages

License

Include a license at the top of new files.