Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.42 KB

CONTRIBUTING.md

File metadata and controls

56 lines (40 loc) · 1.42 KB

The layout of this package was initially generated using the scikit-hep/cookie package which follows the Scikit-HEP Developer recommendations for modern "dual-stack" python plus C++ packages. Thanks goes to Henry Schreiner (@henryiii) for putting together these recommendations and examples.

Setting up a development environment

You can set up a development environment by running:

python3 -m venv .env
source .env/bin/activate
pip install -e .[dev,test]

Post setup

You should prepare pre-commit, which will help you by checking that commits pass required checks:

pre-commit install # Will install a pre-commit hook into the git repo

You can also/alternatively run pre-commit run (changes only) or pre-commit run --all-files to check even without installing the hook.

Testing

Use PyTest to run the unit checks:

pytest

Building docs

From inside your environment with the docs extra installed (i.e. pip install .[docs]), run:

cd docs
make clean && rm -rf _generated
make

Conversion routines

The generic conversion routines require the convert extra to be installed.

Maintainer notes

A nice commit summary can be generated from the main branch via:

git log --pretty="format: - %s" $(git describe --tags --abbrev=0)..HEAD