Contributing

Contributing#

Issues#

Report bugs and ask for features on the issue tracker. For a bug, give the code that reproduces it and the output of xoa info versions.

Pull requests#

  • Branch from develop and open the pull request against it.

  • Install the pre-commit hooks (pre-commit install), which run ruff like the CI.

  • Add tests and run pytest.

  • Squash feature pull requests into develop: one commit per pull request.

  • Document user visible changes in CHANGES.rst under Unreleased, and list new modules in api.rst.

  • Follow the CODE_OF_CONDUCT.rst.

How to release#

The version comes from the git tag (setuptools-scm) and follows YYYY.M.patch.

  1. Title the Unreleased changes of CHANGES.rst with the version, and leave an empty Unreleased above.

  2. Merge a Version YYYY.M.patch pull request from develop to main with a merge commit, not a squash: a squash would leave main out of the history of develop and the next release pull request would show conflicts.

  3. Tag the merge commit and push the tag:

    git tag -a vYYYY.M.patch -m "Version YYYY.M.patch"
    git push origin vYYYY.M.patch
    
  4. Create a GitHub release from the tag, with the notes of CHANGES.rst: it runs the workflow that publishes to PyPI:

    python bin/release_notes.py YYYY.M.patch | gh release create vYYYY.M.patch --notes-file -
    
  5. Check Read the Docs and merge the pull request of the conda-forge feedstock.

  6. Merge main back into develop: a fast-forward, unless main received other commits. It keeps the tag reachable from develop for the dev versions.