The Python package can be built using the following command (assuming that the working directory is the repository root):
python3 -m pip install --upgrade build
python3 -m build
The package can then be installed with:
python3 -m pip install dist/horus-*-py3-none-any.whl
And tried with:
python3 examples/print_logs.py
Make sure you are in a virtual environment:
python3 -m venv .env
source .env/bin/activate
To install the horus
package locally, without having to rebuild every time you
do a change, you can use:
python3 -m pip install -e .
mypy
is used for type-checking:
python3 -m pip install 'mypy>=1.11' 'types-protobuf>=5.27' 'typing-extensions>=4.6'
python3 -m mypy .
black
is used for formatting:
python3 -m pip install 'black>=24.8'
python3 -m black .