blob: 3ee89b80f7dbab9f696f51db1d20049f80e254cd [file] [log] [blame]
Hynek Schlawack2ae675d2013-08-07 21:01:07 +02001Process
2=======
3
Laurens Van Houtven380a3692013-08-07 11:03:40 +02004This repository has a mandatory code review policy. Contributions
5should happen through pull requests. Never commit to ``master``
6directly.
7
Hynek Schlawack2ae675d2013-08-07 21:01:07 +02008Code
9====
Laurens Van Houtven380a3692013-08-07 11:03:40 +020010
Hynek Schlawack2ae675d2013-08-07 21:01:07 +020011When in doubt, refer to `PEP 8`_ for Python code.
12
Hynek Schlawack43f68732013-08-10 22:13:13 +020013Every code file must start with the boilerplate notice of the Apache License.
14Additionally, every Python code file must contain
15
16.. code-block:: python
17
18 from __future__ import absolute_import, division, print_function
19
Hynek Schlawack2ae675d2013-08-07 21:01:07 +020020Docs
21====
22
23Write docstrings like this:
24
25.. code-block:: python
Laurens Van Houtven380a3692013-08-07 11:03:40 +020026
Hynek Schlawack43f68732013-08-10 22:13:13 +020027 def some_function(some_arg):
28 """
29 Does some things.
Laurens Van Houtven380a3692013-08-07 11:03:40 +020030
Hynek Schlawack43f68732013-08-10 22:13:13 +020031 :param some_arg: Some argument.
32 """
Laurens Van Houtven380a3692013-08-07 11:03:40 +020033
34So, specifically:
35
36- Always use three double quotes.
37- Put the three double quotes on their own line.
38- No blank line at the end.
Hynek Schlawack2ae675d2013-08-07 21:01:07 +020039- Use Sphinx parameter/attribute documentation `syntax`_.
40
41
42.. _`PEP 8`: http://www.peps.io/8/
43.. _`syntax`: http://sphinx-doc.org/domains.html#info-field-lists