Setup up the project for development

$ git clone git@github.com:novopl/peltak.git
$ cd peltak
$ virtualenv env
$ source ./env/bin/activate
$ pip install -r requirements.txt -r ops/devrequirements.txt
$ peltak git add-hooks

Note

The CircleCI builds can be found here

Running tests

Config: The types of tests are defined in pelconf.py and the pytest configuration is defined in ops/tools/pytest.ini.

$ peltak test

How to test for all supported python versions?

To run tox you need to first generate the requirements files. You can do this with pipenv lock -d --requirements > requirements.txt. Once it’s done, you can just run tox to test against python2.7, python3.4 and python3.6 all in one go.

Linting

Config: The list of locations to lint is defined in pelconf.py and the linters configuration is defined in ops/tools/{pylint,pep8}.ini.

$ peltak lint

Generating docs

Config: The list of documented files and general configuration is in pelconf.py and the Sphinx configuration is defined in docs/conf.py.

$ peltak docs