Get the code!
$ git clone https://github.com/cognitedata/cognite-replicator.git
$ cd cognite-replicator
Install poetry:
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Install dependencies and initialize a shell within the virtual environment.
$ poetry install
$ poetry shell
Install pre-commit hooks
$ pre-commit install
Set up tests for all new functionality.
Initiate unit tests by running the following command from the root directory:
$ poetry run pytest --cov cognite
If you want to generate code coverage reports run:
poetry run pytest --cov cognite --cov-report html \
--cov-report xml \
Open htmlcov/index.html
in the browser to navigate through the report.
poetry run replicator -h