Skip to content

Files

Latest commit

c8dc3f8 · Nov 1, 2021

History

History
45 lines (31 loc) · 1.56 KB

CONTRIBUTING.md

File metadata and controls

45 lines (31 loc) · 1.56 KB

Contributing

Thank you for your interest in contributing to this project.

Setting up tools

Static type checkers are encouraged to be used. There are plans to set up a CI that run PyRight or MyPy on the project to ensure it passes type checking.

This project uses flake8 for linting as a laid-back linter, mainly it enforces line length. Preferably lines should be between 79 and 95 characters long, but flake8 will not complain until a line reaches 105 characters which is the hard limit.

Imports should be ordered according to the rules of isort.

Building the documentation

Because of how Read the Docs builds our documentation from the root of our project that means that files and folders have to be configured from that origin.

This means that building and serving the documentation needs to be done from the root of the project as well with the following commands:

# Locally serve the documentation
mkdocs serve --config-file docs/mkdocs.yml

# For building use the equivalent:
mkdocs build --config-file docs/mkdocs.yml

Making commits

Once you have made your changes it is time to commit it to Git. These commits should be imperative and clearly explain what was changed. The commit body can be used to explain why it was changed.

If you are unsure what this means, read this blog post. The blog post can be summarized to having your commit messages fit into this sentence:

If applied, this commit will ...