Get the code!
git clone https://github.com/cognitedata/neat.git
cd cognite-neatWe use poetry for dependency- and virtual environment management.
Install dependencies and initialize a shell within the virtual environment, with these commands:
poetry install
poetry shellInstall pre-commit hooks to run static code checks on every commit:
pre-commit installYou can also manually trigger the static checks with:
pre-commit run --all-filesInitiate unit tests by running the following command from the root directory:
pytest
If you want to generate code coverage reports run:
pytest --cov-report html \
--cov-report xml \
--cov cognite
Open htmlcov/index.html in the browser to navigate through the report.