- Install Rust compiler
rustup default stable
rustup component add rustfmt --toolchain nightly
(we format withcargo +nightly fmt
)cargo check
This applies to the python
subdirectory where the python bindings are defined and built into a python distribution package.
- Install Python (any released version not EOL, see here);
pip
andvenv
will be included and the following instructions assume that they are used, but you can use, e.g.,uv
as well. You may want to upgrade as well,pip install -U pip wheel
. - Go to the
python
subdirectory. python -m venv venv
to create a virtual environment and. venv/bin/activate
to activate it (activating it is a bit different from system to system).- To run the CI, all you need is tox; install it with
pip install tox
and run it withtox
. - To build the package, all you need is build,
pip install build
to install andpythom -m build .
to build it. Note that this is not needed for CI, as tox builds the package internally for each environment. This is only in case you want to build it yourself locally. For development, you can also just do an editable install,pip install -e .
. - For code formatting and style, install the development requirements,
pip install -r requirements-dev.txt
. You can then apply code formatting withruff format
, detect and fix linting issues withruff check --fix
. Note thatmypy
is used for type checking, but sincemypy
does not modify the code and is run in the CI bytox
, you may not need to run it yourself.