Skip to content

Programming Guidelines

Michel Breyer edited this page Feb 10, 2021 · 8 revisions

This page is meant as a starting point for existing and new members of the MoMa development team.

Code Style

Sticking to a consistent code style makes reading code a much more pleasant process. This section defines the styles we use and links to instructions how to use formatters to avoid manually styling your code.

Python

We follow the Python Software Foundation style guide and use the Black code formatter. It is good practice to setup a format-on-save action in your favorite editor, however to ensure consistent formatting, we also recommend adding a pre-commit hook that runs the formatter before committing any changes. Here you can find instructions for configuring:

Clone this wiki locally