This page discribes how to contribute to Diator.
- Linux, since all development proccess adapted for Linux machines.
- supported Python version (e.g. Python 3.10 or Python 3.11).
- Redis, since we have integration and end-to-end tests.
-
fork the repository
-
clone the forked repository
-
create a Python virtual environment in the desired location:
python -m venv .venv
-
activate environment:
source .venv/bin/activate
-
install dev dependencies:
pip install -e .["test"]
-
run unit tests:
make test-unit
We are using the following linters:
- black
- flake8
- vulture
- mypy
- isort
Makefile
supports a task to run linters:
make check-linting
It doesn't matter, as long as branch names don't contain anything that violates the Code of Conduct included in the project's repository. As a general rule of thumb, branch names should have a descriptive name, or refer the number of an issue in their name.