Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.03 KB

CONTRIBUTING.md

File metadata and controls

50 lines (33 loc) · 1.03 KB

See the Scientific Python Developer Guide for a detailed description of best practices for developing scientific packages.

Setting up a development environment manually

You can set up a development environment by running:

poetry install

Post setup

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

pip install pre-commit # or brew install pre-commit on macOS
pre-commit install # this 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

Coverage

Use pytest-cov to generate coverage reports:

pytest --cov=acbm

Pre-commit

This project uses pre-commit for all style checking. Install pre-commit and run:

pre-commit run -a

to check all files.