Link Search Menu Expand Document

Code formatting

If you find that some of your code does not conform to the style guide, use autopep8 to automatically format your Python code. Note that this will not correct issues like unused variables.

To run autopep8:

$ autopep8 -i -r -a .

Run flake8 again to ensure that all formatting has been corrected. If it has not, manually format your remaining Python code.


Contact Joe Robertson (joseph.robertson@nrel.gov) for more information.