DamienIrving / climate-analysis

Code used for the analysis and visualisation of climate data during my PhD
MIT License
40 stars 19 forks source link

Docstring formatting #2

Open DamienIrving opened 9 years ago

DamienIrving commented 9 years ago

PEP 257 outlines what wording should be used in a docstring (e.g. say return, not returns), but not how it should be formatted. I was initially going to use the reST format (because sphinx - a python documentation generator - can read that), but it's not the most human readable format. Instead, I'm going to follow the suggestion on this stack overflow post and follow the Google Python Style Guide, which the next version of sphinx will support. A good example of the format is here.