Contributing to Inspect WandB
We welcome contributions from the community! This is a young project, so we are very open to feature requests and/or PRs for features or bug fixes that you’d like to see. If you want to discuss new features, bugs or the overall direction of Inspect WandB with us, the best place to do so is the Inspect Community #inspect_wandb Slack Channel
Development
If you want to develop this project, you can fork and clone the repo and then run:
uv sync --group dev
source .venv/bin/activate
uv add pre-commit
pre-commit install
to install for local development.
If you want to develop the Weave extra, the first command should instead be:
uv sync --group dev --extra weave
Updating the docs
If you are making changes to or adding core features, please consider updating the documentation as necessary. We use MyST to write documentation using Markdown syntax.
If editing the docs you can test your changes locally by running:
uv sync --group docs-dev
cd docs
make html
open build/html/index.html
or on Windows:
uv sync --group docs-dev
cd docs
.\make.bat html
start build/html/index.html
Using Your Local Version with Other Projects
If you want to test your local development version of inspect_wandb with another project (e.g., inspect_evals), you can install it in editable mode:
# From any directory, install inspect_wandb in editable mode
uv pip install -e "/path/to/inspect_wandb"
# Or with extras
uv pip install -e "/path/to/inspect_wandb[weave]"
The -e flag creates an “editable” install - changes you make to the source files take effect immediately without reinstalling.
To verify you’re using your local version:
python -c "import inspect_wandb; print(inspect_wandb.__file__)"
This should print the path to your local development directory.
Testing
We write unit tests with pytest. If you want to run the tests, you can simply run pytest. Please consider writing at least one test if adding a new feature, or covering edge cases with a test if submitting bug fixes.