Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.54 KB

CONTRIBUTING.md

File metadata and controls

64 lines (45 loc) · 1.54 KB

Contributing

  1. Open a new issue to discuss the changes you would like to make. This is not strictly required but it may help reduce the amount of rework you need to do later.
  2. Make changes or write your code using the guidelines in the following documents:
  3. Ensure you have added proper unit tests and documentation.
  4. Open a new pull request.

Coding Style

Python code should be compliant with PEP8. Make sure that the linting tool (flake8 or other) is running with Python 3, otherwise the tool may report false positives due to changes between Python 2 and Python 3.

PyDoc

Public interfaces for new buckets, models, and the model server, can be found in source files:

  • bucket.py
  • model.py
  • server.py

Common development tasks

Adding a dependency:

Assuming you can already package and run the project, add the new dependency in requirements.txt file and setup.py file.

Unit Tests:

Before opening a pull request you should run the short tests.

Run short tests:

nosetests loudml/tests

Execute integration tests:

Running the integration tests requires several docker containers to be running. You can start the containers with:

make docker-run

And run the full test suite with:

make test-all

Use make docker-kill to stop the containers.