Skip to content

Development

This section is for developers only. It describes the requirements, the setup process, how to run tests, and how to deploy.

โœ… Requirements

Before starting the project make sure these requirements are available:

  • python. The python programming language (v3.8, v3.9, v3.10, v3.11).

  • git. For versioning your code.

๐Ÿ› ๏ธ Setup

Create the python environment

To create a python virtual environment using venv, simply run the following commands:

# create a new virtual environment
python -m venv venv

# activate the environment (UNIX)
. ./venv/bin/activate

# activate the environment (WINDOWS)
./venv/Scripts/activate

# deactivate the environment (UNIX & WINDOWS)
deactivate

Install

To install the requirements run:

pip install -e .[all]

Githooks. Githooks enable automatic commit and push hooks. The project is configured to run tests on each commit and to run tests and format the code on each push. See the configuration in .githooks.ini. To enable git hooks, run:

githooks

๐Ÿงช Tests

To run existing tests, simply run:

python -m unittest discover test

๐Ÿ“ Documentation

To start live-reloading the documentation, run:

mkdocs serve

When suggesting changes, please refer to the Material for MkDocs documentation.

Deployment

Once the changes are accepted into the project, the GitHub Actions automatically deploy the documentation to the gh-pages branch.