Warning: This document is for the development version of Bareos Documentation. The main version is bareos-20.

Python

Automatic Sourcecode Formatting

All Python code should be formatted using automatic sourcecode formatting. For this, the tool black have to be used.

Docstrings

Python docstrings should be formatted as Google Style Python Docstrings, see https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings and especially https://www.sphinx-doc.org/en/master/usage/extensions/example_google.html