ContributingΒΆ
git clone https://github.com/TongCHEN779/moment-sos.git && cd moment-sos
pip install -e ".[test]"
pytest # software tests (add -k "not docs" to skip the documentation examples)
Tests. Every behavior change needs a test in
tests/. Cross-validation against the independent NumPy reference is intests/test_library.py; the interior-point comparison needscvxpyandclarabel(or MOSEK).Docs. Pages are Markdown (MyST) in
docs/. Python code blocks in the docs are executed bytests/test_docs_examples.py, so examples must run. Build withpip install -r docs/requirements.txt && sphinx-build -W docs docs/_build/html.Honesty about numbers. Any performance claim in the docs must come from a file in
research/experiments/results/and be listed inresearch/REPRODUCE.md.Julia package.
julia/MomentSOS:julia --project=julia/MomentSOS -e 'using Pkg; Pkg.test()'(needs themoment-sosPython package onPYTHONPATHor installed).