-
Robert Habermann authoredRobert Habermann authored
After you've reviewed these contribution guidelines, you'll be all set to
contribute to this project.
CONTRIBUTING.rst 1.25 KiB
Contributing
Dependencies
Tests/Developement (pip):
- tox
- coverage
- unittest2
- mock
- responses
Documentation (pip):
- sphinx
- sphinxcontrib-napoleon
- sphinx_rtd_theme
Tests
Run (from project root):
`python setup.py test`
Full Suite:
tox
This will run:
- Python2.7
- Python3.4
- py3kwarn
- pep8 (using flake8)
- build current docs
Building PyOTRS package: python setup.py sdist
Coverage
Coverage details: https://sys.denm.de/PyOTRS/htmlcov/
Writing Documentation
Google Docstring format for:
- Args: (includes **kwargs)
- Returns:
- Raises:
- Examples:
Sphinx Napoleon Docs:
https://sphinxcontrib-napoleon.readthedocs.org/en/latest/
https://sphinxcontrib-napoleon.readthedocs.org/en/latest/example_google.html#example-google
To including private method in the automatically generate Sphinx documentation add:
:private-members:
For a Spinx formatted "Note" or "Warning" use .rst Syntax:
.. note::
.. warning::
Some links:
http://www.sphinx-doc.org/en/stable/markup/para.html
http://www.sphinx-doc.org/en/stable/rest.html
http://docutils.sourceforge.net/docs/user/rst/quickref.html#escaping
https://gist.github.com/dupuy/1855764