Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 849 Bytes

CONTRIBUTING.md

File metadata and controls

40 lines (34 loc) · 849 Bytes

Contributing to Mailmerge

Install development environment

Set up a development virtual environment.

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

A mailmerge entry point script is installed in your virtual environment.

$ which mailmerge
/Users/awdeorio/src/mailmerge/env/bin/mailmerge

Testing and code quality

Run unit tests

$ pytest

Measure unit test case coverage

$ pytest --cov ./mailmerge --cov-report term-missing

Test code style

$ pycodestyle mailmerge tests setup.py
$ pydocstyle mailmerge tests setup.py
$ pylint mailmerge tests setup.py
$ check-manifest

Run linters and tests in a clean environment. This will automatically create a temporary virtual environment.

$ tox