Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.29 KB

CONTRIBUTING.md

File metadata and controls

43 lines (29 loc) · 1.29 KB

Contributing

The project follows the Open Knowledge International coding standards.

Getting Started

Recommended way to get started is to create and activate a project virtual environment. To install package and development dependencies into active environment:

$ make install

Testing

To run tests with linting and coverage:

$ make test

For linting pylama configured in pylama.ini is used. On this stage it's already installed into your environment and could be used separately with more fine-grained control as described in documentation - https://pylama.readthedocs.io/en/latest/.

For example to sort results by error type:

$ pylama --sort <path>

For testing tox configured in tox.ini is used. It's already installed into your environment and could be used separately with more fine-grained control as described in documentation - https://testrun.org/tox/latest/.

For example to check subset of tests against Python 2 environment with increased verbosity. All positional arguments and options after -- will be passed to py.test:

tox -e py27 -- -v tests/<path>

Under the hood tox uses pytest configured in pytest.ini, coverage and mock packages. This packages are available only in tox envionments.