Development Environment

Setup Local Development Environment

To setup a local development environment, the developers should follow the steps below:

  • Install anaconda (miniconda is recommended)

  • Clone the repository and make a feature branch based off next.

  • Create a new virtual environment with conda env create which uses environment.yml

conda env create --file environment.yml
  • Activate the virtual environment with conda activate quicknxs

  • Activate the pre-commit hooks

pre-commit install

The environment.yml contains all of the dependencies for both the developer and the build servers. Update file environment.yml if dependencies are added to the package.

Developing with PyCharm

Currently, QuickNXS contains PyQt5 and PiSide6 which are not compatible with each other and therefore one must be selected as the default bindings to Qt. Open the PyCharm settings and select PyQt5 as the default bindings to Qt in the python debugger.

../_images/debugging_pycharmm_1.png

Test Data

The test data will be stored in a second git repository quicknxs-data which uses git-lfs. To use it, first install git-lfs, then setup the git-submodule

git submodule init
git submodule update

See also how to write integration tests