Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.45 KB

CONTRIBUTING.md

File metadata and controls

48 lines (32 loc) · 1.45 KB

Contributing

Thanks for getting involved! PRs and github issues are more than welcome.

You will need to install tox to run tests and auto-formatting:

pip install tox

Adhering to MyGrad's style / formatting

Auto-formatting

MyGrad uses:

Once you have made your changes/additions to MyGrad's code, you can run all of these auto-formatting tools via tox:

tox -e format

This will (temporarily) install and run all of these formatting tools on MyGrad's code base for you.

Docstring format

MyGrad adheres to the NumPy docstring style, and strives to adhere to formally-correct type hints in the Parameters section.

Running tests

PRs will automatically execute a full test suite on Travis.

To test locally

tox -e py

will run the tests in a hermetic environment (without even having to install mygrad, and

pytest tests

will run in your local python environment.