Contributions are welcome. This document covers the development workflow.
git clone https://github.com/solozobov/governance-benchmark-dataset.git
cd governance-benchmark-dataset
python -m venv .venv && source .venv/bin/activate
make install # pip install -e ".[dev]"
pre-commit install # enable pre-commit hooks- Create a working branch
- Make changes
- Run
make check(ruff + mypy strict + pytest with 100% coverage) - Commit -- pre-commit hooks enforce all quality gates automatically
- Open a pull request
- 100% test coverage -- every line, every branch. No exceptions.
- mypy strict -- full type annotations on all source code
- ruff -- 23 rule categories enforced (see
pyproject.toml) - No
type: ignorein source code unless the third-party library is untyped - Frozen dataclasses for all value types
- NumPy-style docstrings on all public functions
make check # lint + typecheck + test (sequential)
make lint # ruff check + format
make typecheck # mypy strict
make test # pytest with coverage
make format # auto-fix lint + formatsrc/benchmark/-- package sourcetests/-- pytest test suitedataset/-- benchmark data (JSON, schemas)examples/-- runnable usage examplesdocs/-- supplementary documentation
- Code (
src/,tests/,examples/,scripts/): Apache 2.0 - Dataset (
dataset/): CC BY 4.0