Contributing to Supervaizer
Thank you for considering contributing to Supervaizer. This document outlines the development process and guidelines.
Development Environment
This project uses just as a command runner and uv for Python environments. List all recipes with:
just
Setup
- Clone the repository and branch from
develop. - Install uv (
pip install uvorbrew install uv). - Install development dependencies:
just install-dev - Install Git hooks:
just install-hooks
uv run <cmd> runs a command inside the project environment; no manual virtualenv activation is needed.
Running Tests
just test # full suite, no coverage
just test-cov # with coverage report
just test-failed # rerun last failures
Type Checking and Linting
just precommit # ruff check + ruff format + mypy + hooks, all files
just mypy # mypy only (same invocation as CI)
uv run mypy src/supervaizer tests # include tests
Pull Request Process
- Fork the repository and create a branch from
develop(git switch -c feature/amazing-feature develop). - Make your changes and add or update targeted tests.
- Run
just testandjust precommit. - Update documentation (
docs/CHANGELOG.mdUnreleased section, andjust generate-docsif public models changed). - Commit with a signed-off Conventional Commit message:
git commit -s -m "✨ feat: add amazing feature". Thecommit-msghook enforces the gitmoji conventional format and adds the gitmoji when it is missing. - Push and open a Pull Request against
develop.mainonly receives release PRs.
Code Style
- Ruff for formatting and linting (default 88-column line length,
previewformatting enabled). - Mypy for type checking. New or modified functions, including tests, need explicit type annotations and return types.
- Module-level imports by default; document any unavoidable local import.
- Supervaizer is a published SDK: keep public payloads backward compatible unless the change is explicitly breaking and coordinated with Studio.
After just install-hooks, each git commit runs the .pre-commit-config.yaml checks (Ruff, mypy, license header) on the staged files, and the commit-msg hook checks the message. GitButler's but commit does not run Git hooks.
Run just precommit before pushing; CI enforces the same checks on every pull request.
Licensing and Contribution Terms
By submitting a contribution (code, documentation, or other content) to this project, you agree to license it under the terms of the Mozilla Public License 2.0 (MPL-2.0).
You retain the copyright to your contribution, but you grant the project maintainers and all users the right to use, modify, and distribute it as part of the project under the MPL-2.0 license.
This project uses the Developer Certificate of Origin (DCO). By submitting a contribution, you certify that:
I certify that the contribution was created in whole or in part by me and I have the right to submit it under the MPL-2.0 license.
Express this certification by signing off each commit with git commit -s. Contributions without this sign-off may be rejected.
Uploaded on 2026-11-06 15:07:19