Code style

In case you contribute code, we generally ask for following the code style we are using already. This is a general Python style, with 4 spaces as the delimiter, nothing groundbreaking here :)

Formatting/Linting

Import sorting is controlled by isort. An isort configuration is part of the setup.cfg in the root directory.

For code formatting we use Black.

For linting we use Flake8. A Flake8 configuration is part of the setup.cfg in the root directory.

There is a helper script to reformat the code under support/run_formatter.py and the tests will also verify this formatting.

Logging

Python supports a number of different logging patterns - for more information see Pyformat and Formatting python log messages. We request that the new format style is followed e.g.

logger.info("Fetching common steps from '{}'.".format(url))