- Added developer guide - Added installation guide - Removed screenshots of Horizon pages Change-Id: I827e9dad490099b7825ed812452d89fc7d4d0e83
1.9 KiB
Development Guidelines
Coding Guidelines
For all the code in Savanna we have a rule - it should pass PEP 8.
To check your code against PEP 8 run:
tox -e pep8
Note
For more details on coding guidelines see file
HACKING.rst
in the root of Savanna repo.
Testing Guidelines
Savanna has a suite of tests that are run on all submitted code, and it is recommended that developers execute the tests themselves to catch regressions early. Developers are also expected to keep the test suite up-to-date with any submitted code changes.
Savanna's suite of unit tests can be executed in an isolated environment with Tox. To execute the unit tests run the following from the root of Savanna repo:
tox -e py27
Documentation Guidelines
The documentation in docstrings should follow the PEP 257 conventions (as mentioned in the PEP 8 guidelines).
More specifically:
- Triple quotes should be used for all docstrings.
- If the docstring is simple and fits on one line, then just use one line.
- For docstrings that take multiple lines, there should be a newline after the opening quotes, and before the closing quotes.
- Sphinx is used to build documentation, so use the restructured text markup to designate parameters, return values, etc. Documentation on the sphinx specific markup can be found here:
To build documentation execute. You will find html pages at
doc/build/html
:
tox -e docs
Note
For more details on documentation guidelines see file HACKING.rst in the root of Savanna repo.