Contributions are always welcome.
Pull requests are the best way to propose changes to the codebase (we use Github Flow). We actively welcome your pull requests:
- Fork the repo and create your branch from master.
- If you've added code that should be tested, add tests.
- If you add a new sub-package, update the documentation.
- Make sure your code lints (see below).
- Ensure the test suite passes (see below).
- Ensure the documentation builds (see below).
- Issue the pull request!
pyflakes
should run without any error.- The code needs to be PEP8 compliant (the line length should not exceed 120
- characters). This can be checked using
pycodestyle
. pydocstyle
should run without error.
Here is a typical way to run all these tests (from the repository root)::
$ pyflakes src tests
$ pycodestyle --max-line-length=120 --ignore=W504 src
$ pycodestyle --max-line-length=120 --ignore=W504 tests
$ pydocstyle
If no warning pops up, that(s) ok!
Launching the pytest
command at the repository root will run all the unit
tests.
The docs
subdirectory is equipped with a Makefile::
$ cd docs
$ make
...