summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2011-02-02 13:13:10 -0800
committertermie <github@anarkystic.com>2011-02-02 13:13:10 -0800
commit4b121d03b27fd2ab3e5a2df0833ff8dfae5dfad3 (patch)
tree1461d69a5cf07d4fbfd7595a0bf7f2d38e2ddd7d
parentad6300d279cfd87061ef4cef5f1a9e96aaac2f42 (diff)
downloadnova-4b121d03b27fd2ab3e5a2df0833ff8dfae5dfad3.tar.gz
nova-4b121d03b27fd2ab3e5a2df0833ff8dfae5dfad3.tar.xz
nova-4b121d03b27fd2ab3e5a2df0833ff8dfae5dfad3.zip
some updates to HACKING to describe the docstrings
-rw-r--r--HACKING15
1 files changed, 15 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 3af2381bf..4e0dfc835 100644
--- a/HACKING
+++ b/HACKING
@@ -47,3 +47,18 @@ Human Alphabetical Order Examples
from nova.auth import users
from nova.endpoint import api
from nova.endpoint import cloud
+
+Docstrings
+----------
+ """Summary of the function, class or method, less than 80 characters.
+
+ New paragraph after newline that explains in more detail any general
+ information about the function, class or method. After this, if defining
+ parameters and return types use the Sphinx format. After that an extra
+ newline then close the quotations.
+
+ :param foo: the foo parameter
+ :param bar: the bar parameter
+ :rtype: the return type
+
+ """