Skip to content

Development#

To create a development environment, you must have pixi installed.

A development environment can be created with:

pixi install
pixi run pre-commit install

This will install all dependencies and set up pre-commit hooks. The pixi environment is automatically activated when you run commands through pixi run.

To format the codebase:

pixi run format

To run the unit tests:

pixi run test

To check code style:

pixi run lint

To run the example notebooks:

pixi run test-examples

To build the documentation:

pixi run docs

To serve the documentation locally:

pixi run docs-serve

Multiple Environments#

The project includes two environments to test compatibility with different pydantic versions:

  • default: Uses pydantic >=2 (includes all features)
  • pydantic-1: Uses pydantic <2 (excludes absolv which requires pydantic >=2 due to use of femto)

To run tests in the pydantic-1 environment:

pixi run --environment pydantic-1 test