We are happy to accept contributions to mplhep
via Pull Requests to the GitHub repo. To get started fork the repo.
If you would like to make a pull request please:
- Make a fork of the project
- Commit your changes to a feature branch of your fork push to your branch
- Test your changes with
pytest
- Test formatting with
flake8
and runblack
. - Make a PR
TBD.
python -m pip install --ignore-installed -U -e .[complete]
You can run the unit tests (which should be fast!) via the following command.
py.test --mpl --ignore=tests/test_notebooks.py
Note: This ignores the notebook tests (which are run via papermill which run somewhat slow. Make sure to run the complete suite before submitting a PR
py.test --mpl
We try to follow Conventional Commit for commit messages and PR titles. Since we merge PR's using squash commits, it's fine if the final commit messages (proposed in the PR body) follow this convention.
If you modified expected outcomes of the test. New baseline visuals can be generated using this command:
py.test --mpl-generate-path=tests/baseline
- This contrib was shamelessly stolen from https://github.com/scikit-hep/pyhf